32 lines
969 B
Diff
32 lines
969 B
Diff
From f5d0a115fa44bd1a3a61b2a109956a15130e11e4 Mon Sep 17 00:00:00 2001
|
|
From: huangjiawen <huangjiawen@kylinsec.com.cn>
|
|
Date: Tue, 27 Jun 2023 18:51:42 +0800
|
|
Subject: [PATCH] fix(coredump): Fix crash when clicking on the power option
|
|
button in vnc
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 修复在vnc下点击电源选项按钮崩溃
|
|
|
|
Signed-off-by: huangjiawen <huangjiawen@kylinsec.com.cn>
|
|
---
|
|
src/common/kiran-power.cpp | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/common/kiran-power.cpp b/src/common/kiran-power.cpp
|
|
index 9ef8a2c..8485a9f 100644
|
|
--- a/src/common/kiran-power.cpp
|
|
+++ b/src/common/kiran-power.cpp
|
|
@@ -366,6 +366,7 @@ bool KiranPower::can_logout()
|
|
bool KiranPower::can_switch_user()
|
|
{
|
|
RETURN_VAL_IF_TRUE(this->settings_->get_boolean(STARTMENU_LOCKDOWN_KEY_DISABLE_USER_SWITCHING), false);
|
|
+ RETURN_VAL_IF_FALSE(this->seat_manager_proxy_, false);
|
|
|
|
try
|
|
{
|
|
--
|
|
2.33.0
|
|
|