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

