5 Star 0 Fork 10

src-openEuler/mate-notification-daemon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0013-fix-daemon-return-false-while-dbus-proxy-init-failed.patch 871 Bytes
一键复制 编辑 原始数据 按行查看 历史
zhaosai 提交于 2024-10-22 14:32 . sync patch from 1.22.1, fix kiran themes
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/mate-notification-daemon.git
git@gitee.com:src-openeuler/mate-notification-daemon.git
src-openeuler
mate-notification-daemon
mate-notification-daemon
master

搜索帮助