1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

polkit: fix DMS_DISABLE_POLKIT regression from qs 0.2 deprecation commit

fixes #2897
port 1.5

(cherry picked from commit 68e60f036d)
This commit is contained in:
bbedward
2026-07-20 16:07:41 -04:00
committed by dms-ci[bot]
parent ed5e2a22c0
commit 0381a112b3
2 changed files with 9 additions and 4 deletions
@@ -0,0 +1,3 @@
import Quickshell.Services.Polkit
PolkitAgent {}
+6 -4
View File
@@ -3,7 +3,6 @@ pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Services.Polkit
Singleton {
id: root
@@ -12,10 +11,13 @@ Singleton {
readonly property bool disablePolkitIntegration: Quickshell.env("DMS_DISABLE_POLKIT") === "1"
readonly property bool polkitAvailable: !disablePolkitIntegration
readonly property alias agent: polkitAgentInstance
readonly property var agent: polkitAgentLoader.item
PolkitAgent {
id: polkitAgentInstance
Loader {
id: polkitAgentLoader
active: root.polkitAvailable
asynchronous: false
source: "PolkitAgentInstance.qml"
}
Component.onCompleted: {