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

unified SessionService to support elogind equivalents of systemd

commands
This commit is contained in:
bbedward
2025-08-22 11:40:20 -04:00
parent de17d53f1e
commit dd99cb7ef8
38 changed files with 84 additions and 91 deletions

View File

@@ -1,5 +1,3 @@
pragma ComponentBehavior
import QtQuick
import QtQuick.Controls
import QtCore

View File

@@ -26,13 +26,13 @@ DankModal {
CompositorService.logout()
break
case "suspend":
Quickshell.execDetached(["systemctl", "suspend"])
SessionService.suspend()
break
case "reboot":
Quickshell.execDetached(["systemctl", "reboot"])
SessionService.reboot()
break
case "poweroff":
Quickshell.execDetached(["systemctl", "poweroff"])
SessionService.poweroff()
break
}
}

View File

@@ -7,7 +7,6 @@ import qs.Common
import qs.Modules.Settings
import qs.Services
import qs.Widgets
pragma ComponentBehavior
DankModal {
id: settingsModal