Host: Move screensaver inhibit to host

Removes direct dependency on DBus, uses Qt DBus instead.
This commit is contained in:
Stenzek
2026-01-17 16:16:32 +10:00
parent e2266cd617
commit ffe7ca9f0a
14 changed files with 221 additions and 273 deletions
+5 -1
View File
@@ -76,7 +76,11 @@ if(BUILD_QT_FRONTEND)
# All our builds include Qt, so this is not a problem.
set(QT_NO_PRIVATE_MODULE_WARNING ON)
find_package(Qt6 6.10.1 COMPONENTS Core Gui GuiPrivate Widgets LinguistTools REQUIRED)
if(LINUX)
find_package(Qt6 6.10.1 COMPONENTS Core Gui GuiPrivate Widgets LinguistTools DBus REQUIRED)
else()
find_package(Qt6 6.10.1 COMPONENTS Core Gui GuiPrivate Widgets LinguistTools REQUIRED)
endif()
# Have to verify it down here, don't want users using unpatched Qt.
if(NOT Qt6_DIR MATCHES "^${CMAKE_PREFIX_PATH}")