1 Star 0 Fork 11

cuiyudong123/ukui-screensaver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
disable-Suspend-and-Sleep-of-ukui-screensaver.patch 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
From b38417c0327894a8165a9ea7eda7db4cbf01531a Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Wed, 14 Jun 2023 15:55:43 +0800
Subject: [PATCH] disable Suspend and Sleep of ukui-screensaver
---
src/powermanager.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/powermanager.cpp b/src/powermanager.cpp
index 5b3a23f..e854112 100644
--- a/src/powermanager.cpp
+++ b/src/powermanager.cpp
@@ -59,7 +59,7 @@ PowerManager::PowerManager(QWidget *parent)
"org.gnome.SessionManager",
QDBusConnection::sessionBus(),
this);
-
+/*
loginInterface = new QDBusInterface(login1Service,
login1Path,
login1ManagerInterface,
@@ -79,7 +79,9 @@ PowerManager::PowerManager(QWidget *parent)
}else{
canHibernate = false;
}
-
+*/
+ canSuspend = false;
+ canHibernate = false;
initUI();
resize((ITEM_WIDTH+ITEM_SPACING*2)*this->count()-ITEM_SPACING*2, ITEM_HEIGHT+ITEM_SPACING*2);
//setCurrentRow(0);
--
2.33.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cuiyudong123/ukui-screensaver.git
git@gitee.com:cuiyudong123/ukui-screensaver.git
cuiyudong123
ukui-screensaver
ukui-screensaver
master

搜索帮助