1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 14:32:52 -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 Quickshell
import Quickshell.Io

View File

@@ -9,7 +9,6 @@ import qs.Common
import qs.Modals
import qs.Services
import qs.Widgets
pragma ComponentBehavior
Item {
id: root
@@ -966,8 +965,7 @@ Item {
cursorShape: Qt.PointingHandCursor
onClicked: {
powerDialog.close()
Quickshell.execDetached(
["systemctl", "poweroff"])
SessionService.poweroff()
}
}
}
@@ -1077,7 +1075,7 @@ Item {
cursorShape: Qt.PointingHandCursor
onClicked: {
rebootDialog.close()
Quickshell.execDetached(["systemctl", "reboot"])
SessionService.reboot()
}
}
}

View File

@@ -1,5 +1,3 @@
pragma ComponentBehavior
import QtQuick
import Quickshell
import Quickshell.Wayland

View File

@@ -1,5 +1,3 @@
pragma ComponentBehavior
import QtQuick
import Quickshell
import Quickshell.Wayland