1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-08 06:25:37 -05:00

more uwsm hacks

This commit is contained in:
bbedward
2025-08-27 18:11:56 -04:00
parent 74e64c178d
commit c2765f655c

View File

@@ -9,6 +9,7 @@ import qs.Common
Singleton {
id: root
property bool hasUwsm: false
property bool isElogind: false
property bool inhibitorAvailable: true
property bool idleInhibited: false
@@ -18,6 +19,16 @@ Singleton {
detectElogindProcess.running = true
}
Process {
id: detectUwsmProcess
running: false
command: ["which", "uwsm"]
onExited: function (exitCode) {
hasUwsm = (exitCode === 0)
}
}
Process {
id: detectElogindProcess
running: false
@@ -57,7 +68,9 @@ Singleton {
}
function logout() {
uwsmLogout.running = true
if (hasUwsm)
uwsmLogout.running = true
_logout()
}
function _logout() {