!10 add startlogout signal
From: @tanyulong2021 Reviewed-by: @dou33 Signed-off-by: @dou33
This commit is contained in:
commit
2f5ae6827d
37
0004-add-startlogout-signal.patch
Normal file
37
0004-add-startlogout-signal.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From f4e2ebc5a54ba84014d4e7820d57b5c7a59a786d Mon Sep 17 00:00:00 2001
|
||||||
|
From: tanyulong <tanyulong@kylinos.cn>
|
||||||
|
Date: Thu, 11 Nov 2021 15:50:16 +0800
|
||||||
|
Subject: [PATCH] add startlogout signal
|
||||||
|
|
||||||
|
---
|
||||||
|
ukui-session/sessiondbusadaptor.h | 7 +++++++
|
||||||
|
1 file changed, 7 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/ukui-session/sessiondbusadaptor.h b/ukui-session/sessiondbusadaptor.h
|
||||||
|
index 4da2b55..e75953c 100755
|
||||||
|
--- a/ukui-session/sessiondbusadaptor.h
|
||||||
|
+++ b/ukui-session/sessiondbusadaptor.h
|
||||||
|
@@ -41,6 +41,7 @@ public:
|
||||||
|
|
||||||
|
Q_SIGNALS:
|
||||||
|
void moduleStateChanged(QString moduleName, bool state);
|
||||||
|
+ void StartLogout();
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
bool canLogout()
|
||||||
|
@@ -114,6 +115,12 @@ public slots:
|
||||||
|
mManager->stopProcess(name);
|
||||||
|
}
|
||||||
|
|
||||||
|
+ Q_NOREPLY void emitStartLogout(){
|
||||||
|
+ qDebug()<<"emit StartLogout";
|
||||||
|
+ emit StartLogout();
|
||||||
|
+ }
|
||||||
|
+
|
||||||
|
+
|
||||||
|
private:
|
||||||
|
ModuleManager *mManager;
|
||||||
|
UkuiPower *mPower;
|
||||||
|
--
|
||||||
|
2.30.0
|
||||||
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: ukui-session-manager
|
Name: ukui-session-manager
|
||||||
Version: 3.0.2
|
Version: 3.0.2
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Session manager of the UKUI desktop environment
|
Summary: Session manager of the UKUI desktop environment
|
||||||
License: LGPL-2.1+ GPL-3+
|
License: LGPL-2.1+ GPL-3+
|
||||||
URL: http://www.ukui.org
|
URL: http://www.ukui.org
|
||||||
@ -25,7 +25,8 @@ Provides: x-session-manager
|
|||||||
patch0: 0001-fix-poweroff.patch
|
patch0: 0001-fix-poweroff.patch
|
||||||
patch1: 0002-reset-changelog-and-format.patch
|
patch1: 0002-reset-changelog-and-format.patch
|
||||||
patch2: 0003-adjust-the-sequence-to-make-translation-file-loaded-first.patch
|
patch2: 0003-adjust-the-sequence-to-make-translation-file-loaded-first.patch
|
||||||
|
patch3: 0004-add-startlogout-signal.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This package contains a session that can be started from a display
|
This package contains a session that can be started from a display
|
||||||
manager such as lightdm. It will load all necessary applications for
|
manager such as lightdm. It will load all necessary applications for
|
||||||
@ -37,6 +38,7 @@ patch2: 0003-adjust-the-sequence-to-make-translation-file-loaded-first.patch
|
|||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
%patch2 -p1
|
%patch2 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir cmake-build
|
mkdir cmake-build
|
||||||
@ -70,6 +72,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
#%%{_datadir}/man/man1/ukui-session-tools.1.gz
|
#%%{_datadir}/man/man1/ukui-session-tools.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Nov 11 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.2-4
|
||||||
|
- add startlogout signal
|
||||||
|
|
||||||
* Mon Nov 1 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.2-3
|
* Mon Nov 1 2021 tanyulong <tanyulong@kylinos.cn> - 3.0.2-3
|
||||||
- adjust the sequence to make translation file loaded first
|
- adjust the sequence to make translation file loaded first
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user