mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-12 07:19:41 -04:00
- Remove all compat code - Rewire LegacyNetworkService to use Quickshell.Networking - Add parentWindow to settings child windows
26 lines
611 B
QML
26 lines
611 B
QML
pragma Singleton
|
|
pragma ComponentBehavior: Bound
|
|
|
|
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Services.Polkit
|
|
|
|
Singleton {
|
|
id: root
|
|
readonly property var log: Log.scoped("PolkitService")
|
|
|
|
readonly property bool disablePolkitIntegration: Quickshell.env("DMS_DISABLE_POLKIT") === "1"
|
|
|
|
readonly property bool polkitAvailable: !disablePolkitIntegration
|
|
readonly property alias agent: polkitAgentInstance
|
|
|
|
PolkitAgent {
|
|
id: polkitAgentInstance
|
|
}
|
|
|
|
Component.onCompleted: {
|
|
if (!disablePolkitIntegration)
|
|
log.info("Initialized successfully");
|
|
}
|
|
}
|