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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user