From 3fe1985da5dc59fd194b02adbf41dc76bc0e5be2 Mon Sep 17 00:00:00 2001 From: Calamytryx <91600814+Calamytryx@users.noreply.github.com> Date: Sat, 30 May 2026 18:04:26 +0800 Subject: [PATCH] Update logout, reboot, and shutdown actions to use LogoutPrompt for improved user experience --- contents/ui/DashboardRepresentation.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contents/ui/DashboardRepresentation.qml b/contents/ui/DashboardRepresentation.qml index 75ce1cd..7f43f09 100644 --- a/contents/ui/DashboardRepresentation.qml +++ b/contents/ui/DashboardRepresentation.qml @@ -608,7 +608,7 @@ Kicker.DashboardWindow { anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor - onClicked: Qt.openUrlExternally("qdbus org.kde.Shutdown /Shutdown logout") + onClicked: executable2.connectSource("qdbus org.kde.LogoutPrompt /LogoutPrompt promptLogout") } } @@ -668,7 +668,7 @@ Kicker.DashboardWindow { anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor - onClicked: executable2.connectSource("systemctl reboot") + onClicked: executable2.connectSource("qdbus org.kde.LogoutPrompt /LogoutPrompt promptReboot") } } @@ -728,7 +728,7 @@ Kicker.DashboardWindow { anchors.fill: parent hoverEnabled: true cursorShape: Qt.PointingHandCursor - onClicked: executable2.connectSource("systemctl poweroff") + onClicked: executable2.connectSource("qdbus org.kde.LogoutPrompt /LogoutPrompt promptShutdown") } } }