!35 [sync] PR-33: disable Suspend and Sleep
From: @openeuler-sync-bot Reviewed-by: @peijiankang Signed-off-by: @peijiankang
This commit is contained in:
commit
cd81cbb1e8
25
disable-Suspend-and-Sleep-of-ukui-session-manager.patch
Normal file
25
disable-Suspend-and-Sleep-of-ukui-session-manager.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From 6cd01b774cade76be2f80e894c5ec1b6379be34a Mon Sep 17 00:00:00 2001
|
||||||
|
From: peijiankang <peijiankang@kylinos.cn>
|
||||||
|
Date: Wed, 14 Jun 2023 19:00:20 +0800
|
||||||
|
Subject: [PATCH] disable Suspend and Sleep of ukui-session-manager
|
||||||
|
|
||||||
|
---
|
||||||
|
tools/mainwindow.cpp | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/tools/mainwindow.cpp b/tools/mainwindow.cpp
|
||||||
|
index 50fde29..e077574 100644
|
||||||
|
--- a/tools/mainwindow.cpp
|
||||||
|
+++ b/tools/mainwindow.cpp
|
||||||
|
@@ -351,6 +351,8 @@ MainWindow::MainWindow(bool a, bool b, QWidget *parent) : QMainWindow(parent)
|
||||||
|
qDebug() << "m_btnWidget FixedHeight000:" << m_btnWidget->width() << m_scrollArea->width();
|
||||||
|
|
||||||
|
qApp->installNativeEventFilter(this);
|
||||||
|
+ m_hibernateBtn->hide();
|
||||||
|
+ m_suspendBtn->hide();
|
||||||
|
}
|
||||||
|
|
||||||
|
MainWindow::~MainWindow()
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
@ -1,11 +1,13 @@
|
|||||||
Name: ukui-session-manager
|
Name: ukui-session-manager
|
||||||
Version: 3.1.0
|
Version: 3.1.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Session manager of the UKUI desktop environment
|
Summary: Session manager of the UKUI desktop environment
|
||||||
License: GPL-2.0-or-later and GPL-3.0-or-later and LGPL-2.0-or-later
|
License: GPL-2.0-or-later and GPL-3.0-or-later and LGPL-2.0-or-later
|
||||||
URL: http://www.ukui.org
|
URL: http://www.ukui.org
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
%if 0%{?kylin}
|
||||||
|
Patch01: disable-Suspend-and-Sleep-of-ukui-session-manager.patch
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
@ -48,6 +50,9 @@ Provides: x-session-manager
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%if 0%{?kylin}
|
||||||
|
%patch01 -p1
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
@ -79,6 +84,12 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/man/man1/ukui-session-tools.1.gz
|
%{_datadir}/man/man1/ukui-session-tools.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 14 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.0-3
|
||||||
|
- Type:bugfix
|
||||||
|
- ID:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC: disable Suspend and Sleep of ukui-session-manager
|
||||||
|
|
||||||
* Tue Feb 07 2023 tanyulong <tanyulong@kylinos.cn> - 3.1.0-2
|
* Tue Feb 07 2023 tanyulong <tanyulong@kylinos.cn> - 3.1.0-2
|
||||||
- Enable debuginfo for fix strip
|
- Enable debuginfo for fix strip
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user