mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-06 21:48:30 -04:00
greeter: more repairs for standalone package, scrap LegacyNetworkService
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
pragma Singleton
|
||||
pragma ComponentBehavior: Bound
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
|
||||
property bool available: false
|
||||
|
||||
function refresh() {
|
||||
detectProcess.running = true;
|
||||
}
|
||||
|
||||
Process {
|
||||
id: detectProcess
|
||||
|
||||
command: ["sh", "-c", "command -v dms-greeter >/dev/null 2>&1 || grep -qs dms-greeter /etc/greetd/config.toml"]
|
||||
running: true
|
||||
|
||||
onExited: exitCode => {
|
||||
root.available = exitCode === 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user