Skip to content

Commit 68b2107

Browse files
committed
Swapped sdbus++ for gio.
1 parent 2707789 commit 68b2107

4 files changed

Lines changed: 316 additions & 153 deletions

File tree

backend/source/backend/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,16 @@ else()
5151
linux/opener_linux.cpp
5252
process/fork_pool.cpp
5353
)
54+
# GLib's GDBus replaces sd-bus for portal calls: Ubuntu 24.04's xdg-dbus-proxy
55+
# mangles sd-bus's one-shot AUTH EXTERNAL handshake but accepts GDBus's multi-step
56+
# negotiation, so the app can talk to portals without --socket=session-bus.
57+
# gio-unix-2.0 brings in GUnixFDList for file-descriptor passing.
58+
find_package(PkgConfig REQUIRED)
59+
pkg_check_modules(gio REQUIRED IMPORTED_TARGET gio-2.0 gio-unix-2.0)
5460
target_link_libraries(
5561
backend
5662
PRIVATE
57-
SDBusCpp::sdbus-c++
63+
PkgConfig::gio
5864
)
5965
endif()
6066

0 commit comments

Comments
 (0)