31 lines
871 B
Diff
31 lines
871 B
Diff
From f31d22fe7b500f9cb1f2eeed474056e3f86514dd Mon Sep 17 00:00:00 2001
|
|
From: XiaoWen <xiaowen@kylinos.com.cn>
|
|
Date: Wed, 29 Jun 2022 16:42:19 +0800
|
|
Subject: [PATCH] fix(daemon):return false while dbus proxy init failed
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
- 当dbus接口初始化失败后返回错误
|
|
|
|
Signed-off-by: XiaoWen <xiaowen@kylinos.com.cn>
|
|
---
|
|
src/daemon/daemon.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
|
|
index 44572e3..18bd02e 100644
|
|
--- a/src/daemon/daemon.c
|
|
+++ b/src/daemon/daemon.c
|
|
@@ -1114,6 +1114,7 @@ static gboolean screensaver_active(GtkWidget* nw)
|
|
if (proxy == NULL) {
|
|
g_warning("Failed to get dbus connection: %s", error->message);
|
|
g_error_free (error);
|
|
+ return False;
|
|
}
|
|
|
|
variant = g_dbus_proxy_call_sync (proxy,
|
|
--
|
|
2.27.0
|
|
|