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:
@@ -1,5 +1,3 @@
|
||||
pragma ComponentBehavior
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
pragma ComponentBehavior
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
pragma ComponentBehavior
|
||||
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Wayland
|
||||
|
||||
Reference in New Issue
Block a user