43 lines
1.4 KiB
Diff
43 lines
1.4 KiB
Diff
From fb62714c4f58c5705baeffd0a668ca656384391f Mon Sep 17 00:00:00 2001
|
|
From: yangfeng <yangfeng@kylinsec.com.cn>
|
|
Date: Wed, 24 Jul 2024 19:47:09 +0800
|
|
Subject: [PATCH 21/22] fix(media-keys-action):fix compile error
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 修复编译错误
|
|
---
|
|
plugins/keybinding/media-keys/media-keys-action.cpp | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/plugins/keybinding/media-keys/media-keys-action.cpp b/plugins/keybinding/media-keys/media-keys-action.cpp
|
|
index 864f8dc..27ef53a 100644
|
|
--- a/plugins/keybinding/media-keys/media-keys-action.cpp
|
|
+++ b/plugins/keybinding/media-keys/media-keys-action.cpp
|
|
@@ -207,9 +207,9 @@ void MediaKeysAction::do_touchpad_osd(bool state)
|
|
|
|
void MediaKeysAction::do_shutdown()
|
|
{
|
|
+ std::string cmdline = "kiran-session-quit --power-off";
|
|
try
|
|
{
|
|
- std::string cmdline = "kiran-session-quit --power-off";
|
|
Glib::spawn_command_line_async(cmdline);
|
|
}
|
|
catch (const Glib::Error &e)
|
|
@@ -220,9 +220,9 @@ void MediaKeysAction::do_shutdown()
|
|
|
|
void MediaKeysAction::do_logout()
|
|
{
|
|
+ std::string cmdline = "kiran-session-quit --logout";
|
|
try
|
|
{
|
|
- std::string cmdline = "kiran-session-quit --logout";
|
|
Glib::spawn_command_line_async(cmdline);
|
|
}
|
|
catch (const Glib::Error &e)
|
|
--
|
|
2.27.0
|
|
|