1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-12 23:32:50 -04:00

quickshell: drop support for 0.2, require 0.3+

- Remove all compat code
- Rewire LegacyNetworkService to use Quickshell.Networking
- Add parentWindow to settings child windows
This commit is contained in:
bbedward
2026-05-11 13:04:29 -04:00
parent 3989c7f801
commit b8f4c350a8
52 changed files with 1472 additions and 2064 deletions
+7 -24
View File
@@ -3,6 +3,7 @@ pragma ComponentBehavior: Bound
import QtQuick
import Quickshell
import Quickshell.Services.Polkit
Singleton {
id: root
@@ -10,33 +11,15 @@ Singleton {
readonly property bool disablePolkitIntegration: Quickshell.env("DMS_DISABLE_POLKIT") === "1"
property bool polkitAvailable: false
property var agent: null
readonly property bool polkitAvailable: !disablePolkitIntegration
readonly property alias agent: polkitAgentInstance
function createPolkitAgent() {
try {
const qmlString = `
import QtQuick
import Quickshell.Services.Polkit
import qs.Services
PolkitAgent {
}
`
agent = Qt.createQmlObject(qmlString, root, "PolkitService.Agent")
polkitAvailable = true
log.info("Initialized successfully")
} catch (e) {
polkitAvailable = false
log.warn("Polkit not available - authentication prompts disabled. This requires a newer version of Quickshell.")
}
PolkitAgent {
id: polkitAgentInstance
}
Component.onCompleted: {
if (disablePolkitIntegration) {
return
}
createPolkitAgent()
if (!disablePolkitIntegration)
log.info("Initialized successfully");
}
}