Compare commits

..

No commits in common. "0270f84c06b659d21c92e1b617cffd4d273e43bf" and "1ef1b9d16e3bacf43190f7e087ee746d7a53782a" have entirely different histories.

7 changed files with 4 additions and 681 deletions

View File

@ -1,29 +0,0 @@
From 02b63ef64da86153c93e96b59ab55c95b0167ffd Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Sun, 25 Jun 2023 15:57:27 +0900
Subject: [PATCH] Fix the failure of shortcut key to open terminal
---
plugins/media-keys/mediakey-manager.cpp | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git a/plugins/media-keys/mediakey-manager.cpp b/plugins/media-keys/mediakey-manager.cpp
index 99f66b6..deca341 100644
--- a/plugins/media-keys/mediakey-manager.cpp
+++ b/plugins/media-keys/mediakey-manager.cpp
@@ -2165,11 +2165,7 @@ void MediaKeysManager::doOnScreenKeyboardAction()
void MediaKeysManager::doOpenTerminalAction()
{
- if(UsdBaseClass::isTablet()) {
- executeCommand("mate-terminal","");
- } else {
- executeCommand("x-terminal-emulator","");
- }
+ executeCommand("mate-terminal","");
}
void MediaKeysManager::doScreenshotAction(const QString pramater)
--
2.33.0

View File

@ -1,408 +0,0 @@
From f0da2115c5ee6d2c6393e63762aa62dfd5820fe1 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Wed, 16 Aug 2023 16:07:49 +0800
Subject: [PATCH] test
---
common/common.pri | 2 +-
daemon/daemon.pro | 2 +-
plugins/a11y-keyboard/a11y-keyboard.pro | 2 +-
plugins/a11y-settings/a11y-settings.pro | 2 +-
plugins/authority/authority.pro | 2 +-
plugins/auto-brightness/auto-brightness.pro | 2 +-
plugins/background/background.pro | 2 +-
plugins/clipboard/clipboard.pro | 2 +-
plugins/color/color.pro | 2 +-
plugins/housekeeping/housekeeping.pro | 2 +-
plugins/kds/kds.pro | 2 +-
plugins/keybindings/keybindings.pro | 2 +-
plugins/keyboard/keyboard.pro | 2 +-
plugins/locate-pointer/usd-locate-pointer.pro | 2 +-
plugins/media-keys/media-keys.pro | 2 +-
plugins/mouse/mouse.pro | 2 +-
plugins/mpris/mpris.pro | 2 +-
plugins/save-param/save-param.pro | 2 +-
plugins/sharing/sharing.pro | 2 +-
plugins/sound/sound.pro | 2 +-
plugins/tablet-mode/tablet-mode.pro | 2 +-
plugins/xinput/xinput.pro | 2 +-
plugins/xrandr/xrandr-manager.cpp | 2 +-
plugins/xrandr/xrandr.pro | 2 +-
plugins/xrdb/xrdb.pro | 2 +-
plugins/xsettings/xsettings.pro | 2 +-
projectDir/common_9x0.pri | 2 +-
projectDir/common_master.pri | 2 +-
projectDir/common_tablet.pri | 2 +-
29 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/common/common.pri b/common/common.pri
index 08b2a49..6e04bd5 100644
--- a/common/common.pri
+++ b/common/common.pri
@@ -1,5 +1,5 @@
QT += core gui dbus x11extras
-CONFIG += c++11 no_keywords link_pkgconfig x11extras debug
+CONFIG += c++17 no_keywords link_pkgconfig x11extras debug
CONFIG -= app_bundle
INCLUDEPATH += -I $$PWD/
diff --git a/daemon/daemon.pro b/daemon/daemon.pro
index 8fdde39..c36733a 100644
--- a/daemon/daemon.pro
+++ b/daemon/daemon.pro
@@ -7,7 +7,7 @@ TEMPLATE = app
TARGET = ukui-settings-daemon
QT += core gui dbus
-CONFIG += no_keywords link_prl link_pkgconfig c++11 debug
+CONFIG += no_keywords link_prl link_pkgconfig c++17 debug
CONFIG -= app_bundle
DEFINES += MODULE_NAME=\\\"Daemon\\\"
diff --git a/plugins/a11y-keyboard/a11y-keyboard.pro b/plugins/a11y-keyboard/a11y-keyboard.pro
index d73709c..eb5c95f 100644
--- a/plugins/a11y-keyboard/a11y-keyboard.pro
+++ b/plugins/a11y-keyboard/a11y-keyboard.pro
@@ -8,7 +8,7 @@ TARGET = a11y-keyboard
TEMPLATE = lib
DEFINES += A11YKEYBOARD_LIBRARY MODULE_NAME=\\\"a11y-keyboard\\\"
-CONFIG += c++11 no_keywords link_pkgconfig plugin debug
+CONFIG += c++17 no_keywords link_pkgconfig plugin debug
CONFIG += app_bunale
DEFINES += QT_DEPRECATED_WARNINGS
diff --git a/plugins/a11y-settings/a11y-settings.pro b/plugins/a11y-settings/a11y-settings.pro
index 944c272..385bbe5 100644
--- a/plugins/a11y-settings/a11y-settings.pro
+++ b/plugins/a11y-settings/a11y-settings.pro
@@ -9,7 +9,7 @@ QT += core widgets x11extras
TEMPLATE = lib
TARGET = a11y-settings
-CONFIG += c++11 plugin link_pkgconfig
+CONFIG += c++17 plugin link_pkgconfig
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"a11y-settings\\\"
diff --git a/plugins/authority/authority.pro b/plugins/authority/authority.pro
index f1d75ce..0158ebb 100644
--- a/plugins/authority/authority.pro
+++ b/plugins/authority/authority.pro
@@ -1,6 +1,6 @@
QT -= gui
QT += core dbus
-CONFIG += c++11 console
+CONFIG += c++17 console
CONFIG -= app_bundle
# The following define makes your compiler emit warnings if you use
diff --git a/plugins/auto-brightness/auto-brightness.pro b/plugins/auto-brightness/auto-brightness.pro
index e0eb3f7..ef36bd5 100644
--- a/plugins/auto-brightness/auto-brightness.pro
+++ b/plugins/auto-brightness/auto-brightness.pro
@@ -2,7 +2,7 @@ QT += gui widgets x11extras dbus sensors KConfigCore KConfigGui
TARGET = auto-brightness
TEMPLATE = lib
-CONFIG += c++11 plugin link_pkgconfig
+CONFIG += c++17 plugin link_pkgconfig
DEFINES += TABLETMODE_LIBRARY QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"auto-brightness\\\"
diff --git a/plugins/background/background.pro b/plugins/background/background.pro
index b7e1fae..84a37b6 100644
--- a/plugins/background/background.pro
+++ b/plugins/background/background.pro
@@ -8,7 +8,7 @@ QT += core widgets dbus x11extras gui
TEMPLATE = lib
TARGET = background
-CONFIG += no_keywords c++11 create_prl plugin link_pkgconfig app_bundle debug
+CONFIG += no_keywords c++17 create_prl plugin link_pkgconfig app_bundle debug
DEFINES += MODULE_NAME=\\\"backGround\\\"
diff --git a/plugins/clipboard/clipboard.pro b/plugins/clipboard/clipboard.pro
index c8f9d98..61ef5d8 100644
--- a/plugins/clipboard/clipboard.pro
+++ b/plugins/clipboard/clipboard.pro
@@ -7,7 +7,7 @@ TEMPLATE = lib
TARGET = clipboard
QT += gui
-CONFIG += no_keywords c++11 plugin link_pkgconfig
+CONFIG += no_keywords c++17 plugin link_pkgconfig
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"clipboard\\\"
diff --git a/plugins/color/color.pro b/plugins/color/color.pro
index 25a2fcc..000b9c6 100644
--- a/plugins/color/color.pro
+++ b/plugins/color/color.pro
@@ -9,7 +9,7 @@ QT += core xml widgets x11extras
TEMPLATE = lib
DEFINES += COLOR_LIBRARY
-CONFIG += c++11 link_pkgconfig no_keywords plugin app_bundle
+CONFIG += c++17 link_pkgconfig no_keywords plugin app_bundle
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"color\\\"
diff --git a/plugins/housekeeping/housekeeping.pro b/plugins/housekeeping/housekeeping.pro
index da5cc59..cc57e4b 100644
--- a/plugins/housekeeping/housekeeping.pro
+++ b/plugins/housekeeping/housekeeping.pro
@@ -4,7 +4,7 @@ TARGET = housekeeping
TEMPLATE = lib
DEFINES += HOUSEKEPPING_LIBRARY MODULE_NAME=\\\"housekeeping\\\"
-CONFIG += c++11 no_keywords link_pkgconfig plugin
+CONFIG += c++17 no_keywords link_pkgconfig plugin
DEFINES += QT_DEPRECATED_WARNINGS
diff --git a/plugins/kds/kds.pro b/plugins/kds/kds.pro
index 416634b..e8666df 100644
--- a/plugins/kds/kds.pro
+++ b/plugins/kds/kds.pro
@@ -24,7 +24,7 @@ LIBS += -lX11 -lgsettings-qt
CONFIG += link_pkgconfig
-CONFIG += C++11
+CONFIG += C++17
PKGCONFIG += mate-desktop-2.0 \
diff --git a/plugins/keybindings/keybindings.pro b/plugins/keybindings/keybindings.pro
index df2c4c8..b0b0e9c 100644
--- a/plugins/keybindings/keybindings.pro
+++ b/plugins/keybindings/keybindings.pro
@@ -9,7 +9,7 @@ TARGET = keybindings
TEMPLATE = lib
DEFINES += KEYBINDINGS_LIBRARY
-CONFIG += c++11 no_keywords link_pkgconfig plugin
+CONFIG += c++17 no_keywords link_pkgconfig plugin
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"keybindings\\\"
diff --git a/plugins/keyboard/keyboard.pro b/plugins/keyboard/keyboard.pro
index 93d3e72..632cd62 100755
--- a/plugins/keyboard/keyboard.pro
+++ b/plugins/keyboard/keyboard.pro
@@ -9,7 +9,7 @@ TARGET = keyboard
TEMPLATE = lib
DEFINES += KEYBOARD_LIBRARY
-CONFIG += c++11 no_keywords link_pkgconfig plugin
+CONFIG += c++17 no_keywords link_pkgconfig plugin
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"keyboard\\\"
diff --git a/plugins/locate-pointer/usd-locate-pointer.pro b/plugins/locate-pointer/usd-locate-pointer.pro
index ec65dee..18183c8 100644
--- a/plugins/locate-pointer/usd-locate-pointer.pro
+++ b/plugins/locate-pointer/usd-locate-pointer.pro
@@ -6,7 +6,7 @@
QT -= gui
QT += core widgets x11extras
-CONFIG += c++11 console no_keywords link_pkgconfig plugin
+CONFIG += c++17 console no_keywords link_pkgconfig plugin
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"ULP\\\"
diff --git a/plugins/media-keys/media-keys.pro b/plugins/media-keys/media-keys.pro
index f729155..f1d5631 100644
--- a/plugins/media-keys/media-keys.pro
+++ b/plugins/media-keys/media-keys.pro
@@ -5,7 +5,7 @@
#-------------------------------------------------
QT += gui widgets svg x11extras dbus KGlobalAccel KWindowSystem
TEMPLATE = lib
-CONFIG += c++11 plugin link_pkgconfig
+CONFIG += c++17 plugin link_pkgconfig
CONFIG -= app_bundle
PKGCONFIG += \
diff --git a/plugins/mouse/mouse.pro b/plugins/mouse/mouse.pro
index d38f331..888dc47 100755
--- a/plugins/mouse/mouse.pro
+++ b/plugins/mouse/mouse.pro
@@ -9,7 +9,7 @@ TARGET = mouse
TEMPLATE = lib
DEFINES += MOUSE_LIBRARY
-CONFIG += c++11 no_keywords link_pkgconfig plugin
+CONFIG += c++17 no_keywords link_pkgconfig plugin
CONFIG += app_bunale
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"mouse\\\"
diff --git a/plugins/mpris/mpris.pro b/plugins/mpris/mpris.pro
index 9006e5e..3131e2c 100644
--- a/plugins/mpris/mpris.pro
+++ b/plugins/mpris/mpris.pro
@@ -8,7 +8,7 @@ QT += dbus
TEMPLATE = lib
TARGET = mpris
-CONFIG += c++11 plugin link_pkgconfig
+CONFIG += c++17 plugin link_pkgconfig
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"mpris\\\"
diff --git a/plugins/save-param/save-param.pro b/plugins/save-param/save-param.pro
index 47a667f..a959b4f 100644
--- a/plugins/save-param/save-param.pro
+++ b/plugins/save-param/save-param.pro
@@ -23,7 +23,7 @@ LIBS += -lX11 -lgsettings-qt
CONFIG += link_pkgconfig
-CONFIG += C++11
+CONFIG += C++17
PKGCONFIG += mate-desktop-2.0 \
diff --git a/plugins/sharing/sharing.pro b/plugins/sharing/sharing.pro
index 835f2cf..4293a6a 100644
--- a/plugins/sharing/sharing.pro
+++ b/plugins/sharing/sharing.pro
@@ -11,7 +11,7 @@ TEMPLATE = lib
DEFINES += SHARING_LIBRARY
-CONFIG += c++11 plugin link_pkgconfig
+CONFIG += c++17 plugin link_pkgconfig
CONFIG -= app_bundle
# The following define makes your compiler emit warnings if you use
diff --git a/plugins/sound/sound.pro b/plugins/sound/sound.pro
index 13777aa..1b36bd0 100644
--- a/plugins/sound/sound.pro
+++ b/plugins/sound/sound.pro
@@ -7,7 +7,7 @@ QT -= gui
TEMPLATE = lib
TARGET = sound
-CONFIG += c++11 plugin link_pkgconfig
+CONFIG += c++17 plugin link_pkgconfig
CONFIG -= app_bundle
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"sound\\\"
diff --git a/plugins/tablet-mode/tablet-mode.pro b/plugins/tablet-mode/tablet-mode.pro
index d58d347..69b732e 100644
--- a/plugins/tablet-mode/tablet-mode.pro
+++ b/plugins/tablet-mode/tablet-mode.pro
@@ -2,7 +2,7 @@ QT += gui widgets x11extras dbus sensors KConfigCore KConfigGui
TEMPLATE = lib
-CONFIG += c++11 plugin link_pkgconfig
+CONFIG += c++17 plugin link_pkgconfig
DEFINES += TABLETMODE_LIBRARY
diff --git a/plugins/xinput/xinput.pro b/plugins/xinput/xinput.pro
index d076383..5a8c3c3 100644
--- a/plugins/xinput/xinput.pro
+++ b/plugins/xinput/xinput.pro
@@ -7,7 +7,7 @@ DEFINES += XINPUT_LIBRARY
include($$PWD/../../common/common.pri)
-CONFIG += c++11 link_pkgconfig x11extras debug
+CONFIG += c++17 link_pkgconfig x11extras debug
CONFIG += plugin
PKGCONFIG += x11
diff --git a/plugins/xrandr/xrandr-manager.cpp b/plugins/xrandr/xrandr-manager.cpp
index 7cf7d73..057e180 100644
--- a/plugins/xrandr/xrandr-manager.cpp
+++ b/plugins/xrandr/xrandr-manager.cpp
@@ -1435,7 +1435,7 @@ void XrandrManager::monitorsInit()
mSaveConfigTimer->start(SAVE_CONFIG_TIME);
});
- connect(output.data(), &KScreen::Output::isPrimaryChanged, this, [this](){
+ connect(output.data(), &KScreen::Output::priorityChanged, this, [this](){
KScreen::Output *senderOutput = static_cast<KScreen::Output*> (sender());
USD_LOG(LOG_DEBUG,"PrimaryChanged:%s",senderOutput->name().toLatin1().data());
diff --git a/plugins/xrandr/xrandr.pro b/plugins/xrandr/xrandr.pro
index abe5ec8..4ea36a6 100644
--- a/plugins/xrandr/xrandr.pro
+++ b/plugins/xrandr/xrandr.pro
@@ -9,7 +9,7 @@ QT += core xml widgets x11extras dbus KGlobalAccel
TEMPLATE = lib
DEFINES += XRANDR_LIBRARY _FORTIFY_SOURCE=2
-CONFIG += c++11 no_keywords link_pkgconfig plugin xrandr
+CONFIG += c++17 no_keywords link_pkgconfig plugin xrandr
CONFIG += app_bundle
DEFINES += QT_DEPRECATED_WARNINGS MODULE_NAME=\\\"xrandr\\\"
diff --git a/plugins/xrdb/xrdb.pro b/plugins/xrdb/xrdb.pro
index 872bf24..6d2c003 100644
--- a/plugins/xrdb/xrdb.pro
+++ b/plugins/xrdb/xrdb.pro
@@ -12,7 +12,7 @@ TEMPLATE = lib
DEFINES += XRDB_LIBRARY
-CONFIG += c++11 plugin link_pkgconfig
+CONFIG += c++17 plugin link_pkgconfig
CONFIG -= app_bundle
# The following define makes your compiler emit warnings if you use
diff --git a/plugins/xsettings/xsettings.pro b/plugins/xsettings/xsettings.pro
index feaa7bd..633b3fe 100644
--- a/plugins/xsettings/xsettings.pro
+++ b/plugins/xsettings/xsettings.pro
@@ -6,7 +6,7 @@
QT += gui
QT += core widgets x11extras dbus
-CONFIG += c++11 no_keywords link_pkgconfig plugin
+CONFIG += c++17 no_keywords link_pkgconfig plugin
CONFIG += app_bunale
DEFINES += QT_DEPRECATED_WARNINGS
diff --git a/projectDir/common_9x0.pri b/projectDir/common_9x0.pri
index af6ea1e..71a50c2 100644
--- a/projectDir/common_9x0.pri
+++ b/projectDir/common_9x0.pri
@@ -1,5 +1,5 @@
QT += core gui dbus x11extras
-CONFIG += c++11 no_keywords link_pkgconfig x11extras
+CONFIG += c++17 no_keywords link_pkgconfig x11extras
CONFIG -= app_bundle
INCLUDEPATH += -I $$PWD/
diff --git a/projectDir/common_master.pri b/projectDir/common_master.pri
index 3e34aae..5dbb706 100644
--- a/projectDir/common_master.pri
+++ b/projectDir/common_master.pri
@@ -1,5 +1,5 @@
QT += core gui dbus x11extras
-CONFIG += c++11 no_keywords link_pkgconfig x11extras debug
+CONFIG += c++17 no_keywords link_pkgconfig x11extras debug
CONFIG -= app_bundle
INCLUDEPATH += -I $$PWD/
diff --git a/projectDir/common_tablet.pri b/projectDir/common_tablet.pri
index 7a13b81..65d58b8 100644
--- a/projectDir/common_tablet.pri
+++ b/projectDir/common_tablet.pri
@@ -1,5 +1,5 @@
QT += core gui dbus x11extras
-CONFIG += c++11 no_keywords link_pkgconfig x11extras
+CONFIG += c++17 no_keywords link_pkgconfig x11extras
CONFIG -= app_bundle
INCLUDEPATH += -I $$PWD/
--
2.33.0

View File

@ -1,43 +0,0 @@
From a5af2ea9613c8c0defc175911468ee185f2e188f Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Fri, 21 Jul 2023 15:45:25 +0800
Subject: [PATCH] fix ukui-settings-daemon SIGABRT
---
daemon/main.cpp | 16 +++-------------
1 file changed, 3 insertions(+), 13 deletions(-)
diff --git a/daemon/main.cpp b/daemon/main.cpp
index 1db2eb6..e56fc7c 100644
--- a/daemon/main.cpp
+++ b/daemon/main.cpp
@@ -107,23 +107,13 @@ int main (int argc, char* argv[])
USD_LOG(LOG_INFO, "manager start error!");
return 0;
}
-/*
QObject::connect(&app,&QCoreApplication::aboutToQuit,[&]{
- //PluginManager::getInstance()->managerStop();
- //managerStop()执行时间过长导致注销时所有插件未完全Daectivity就已经强行关闭系统最终导致SIGSEGV、SIGABRT
+ manager->managerStop();//注销时释放资源
+ exit(0);
- app.processEvents();
- //QTimer timer;
- // Wait until the event loop starts
- QTimer::singleShot(500, [=](){
- //make sure program exit
- exit(0);
});
- qApp->quit();
- exit(0);
- });
-*/
+
USD_LOG(LOG_INFO, "ukui-settings-daemon started!");
return app.exec();
}
--
2.33.0

View File

@ -1,48 +0,0 @@
From 13693e16771b266448e084cd9cdb3a4e62a38563 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Tue, 18 Jul 2023 09:23:41 +0800
Subject: [PATCH] fix ukui-settings-daemon about color
---
daemon/main.cpp | 4 ++--
plugins/color/color-manager.cpp | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/daemon/main.cpp b/daemon/main.cpp
index 64148a7..90adce1 100644
--- a/daemon/main.cpp
+++ b/daemon/main.cpp
@@ -106,7 +106,7 @@ int main (int argc, char* argv[])
USD_LOG(LOG_INFO, "manager start error!");
return 0;
}
-
+/*
QObject::connect(&app,&QCoreApplication::aboutToQuit,[&]{
//PluginManager::getInstance()->managerStop();
@@ -124,7 +124,7 @@ int main (int argc, char* argv[])
qApp->quit();
exit(0);
});
-
+*/
USD_LOG(LOG_INFO, "ukui-settings-daemon started!");
return app.exec();
}
diff --git a/plugins/color/color-manager.cpp b/plugins/color/color-manager.cpp
index 227cfbe..b877b76 100644
--- a/plugins/color/color-manager.cpp
+++ b/plugins/color/color-manager.cpp
@@ -84,6 +84,8 @@ ColorManager::ColorManager()
disabled_until_tmw = false;
datetime_override = NULL;
geoclue_enabled = true;
+ geoclue_client = nullptr;
+ geoclue_simple = nullptr;
smooth_enabled = true;
cached_sunrise = -1.f;
cached_sunset = -1.f;
--
2.33.0

View File

@ -1,40 +0,0 @@
diff -Naur ukui-settings-daemon-3.1.2/daemon/main.cpp ukui-settings-daemon-3.1.2~/daemon/main.cpp
--- ukui-settings-daemon-3.1.2/daemon/main.cpp 2023-07-11 15:31:29.785135187 +0800
+++ ukui-settings-daemon-3.1.2~/daemon/main.cpp 2023-07-11 15:30:40.694366917 +0800
@@ -56,6 +56,14 @@
QApplication::exit(15);
}
+void handlerB(int no)
+{
+ USD_LOG(LOG_DEBUG,"catch SIGSEGV signal, with exitcode %d",no);
+
+// manager->managerStop();
+ QApplication::exit(15);
+}
+
int main (int argc, char* argv[])
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
@@ -74,6 +82,7 @@
signal(SIGTERM, &handler);
signal(SIGABRT, &handlerA);
+ signal(SIGSEGV, &handlerB);
QApplication::setQuitOnLastWindowClosed(false);
QTranslator translator;
@@ -108,10 +117,11 @@
//QTimer timer;
// Wait until the event loop starts
QTimer::singleShot(500, [=](){
-
+ //make sure program exit
exit(0);
});
-
+ qApp->quit();
+ exit(0);
});
USD_LOG(LOG_INFO, "ukui-settings-daemon started!");

View File

@ -1,59 +0,0 @@
diff -Naur ukui-settings-daemon-3.1.2/daemon/main.cpp ukui-settings-daemon-3.1.2~/daemon/main.cpp
--- ukui-settings-daemon-3.1.2/daemon/main.cpp 2022-04-15 11:36:50.000000000 +0800
+++ ukui-settings-daemon-3.1.2~/daemon/main.cpp 2023-07-06 17:50:20.704690501 +0800
@@ -31,7 +31,8 @@
#include <sys/types.h>
#include <signal.h>
-
+#include <syslog.h>
+#include <QTimer>
static void print_help ();
static void parse_args (int argc, char *argv[]);
static void stop_daemon ();
@@ -46,6 +47,15 @@
QApplication::exit(15);
}
+void handlerA(int no)
+{
+ USD_LOG(LOG_DEBUG,"catch SIGABRT signal, with exitcode %d",no);
+
+
+// manager->managerStop();
+ QApplication::exit(15);
+}
+
int main (int argc, char* argv[])
{
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
@@ -63,6 +73,7 @@
signal(SIGTERM, &handler);
+ signal(SIGABRT, &handlerA);
QApplication::setQuitOnLastWindowClosed(false);
QTranslator translator;
@@ -88,6 +99,21 @@
return 0;
}
+ QObject::connect(&app,&QCoreApplication::aboutToQuit,[&]{
+
+ //PluginManager::getInstance()->managerStop();
+ //managerStop()执行时间过长导致注销时所有插件未完全Daectivity就已经强行关闭系统最终导致SIGSEGV、SIGABRT
+
+ app.processEvents();
+ //QTimer timer;
+ // Wait until the event loop starts
+ QTimer::singleShot(500, [=](){
+
+ exit(0);
+ });
+
+ });
+
USD_LOG(LOG_INFO, "ukui-settings-daemon started!");
return app.exec();
}

View File

@ -1,18 +1,13 @@
%define debug_package %{nil}
Name: ukui-settings-daemon
Version: 3.1.2
Release: 9
Release: 2
Summary: daemon handling the UKUI session settings
License: GPL-2.0-or-later and GPL-3.0-or-later and LGPL-2.0-or-later
URL: http://www.ukui.org
Source0: %{name}-%{version}.tar.gz
Patch1: 0001-modify-compile-error-of-ukui-settings-daemon.patch
Patch2: Fix-the-failure-of-shortcut-key-to-open-terminal.patch
Patch4: ukui-settings-daemon-3.1.2-kylin-fix-coredump.patch
Patch5: session.patch
Patch6: fix-ukui-settings-daemon-SIGSEGV.patch
Patch7: fix-ukui-settings-daemon-SIGABRT.patch
Patch100: fix-build-error-of-libkscreen-qt5-5.27.6.patch
BuildRequires: pkgconf-pkg-config
BuildRequires: intltool
BuildRequires: qtchooser
@ -92,16 +87,10 @@ Summary: daemon handling the UKUI session settings (common files)
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch100 -p1
%build
%{qmake_qt5}
%{make_build}
qmake-qt5
make -j32
%install
make INSTALL_ROOT=%{buildroot} install
@ -143,45 +132,6 @@ glib-compile-schemas /usr/share/glib-2.0/schemas/ &> /dev/null || :
%changelog
* Wed Aug 16 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-9
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: add fix-build-error-of-libkscreen-qt5-5.27.6.patch
* Fri Jul 21 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-8
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add Patch7:fix-ukui-settings-daemon-SIGABRT.patch
* Tue Jul 18 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-7
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add Patch6:fix-ukui-settings-daemon-SIGSEGV.patch
* Tue Jul 11 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add Patch5:session.patch
* Mon Jul 10 2023 huayadong <huayadong@kylinos.cn> - 3.1.2-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add Patch4:ukui-settings-daemon-3.1.2-kylin-fix-coredump.patch
* Sun Jun 25 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-4
- Type:bugfix
- ID:NA
- SUG:NA
- DESC: add Fix-the-failure-of-shortcut-key-to-open-terminal.patch
* Wed Jan 18 2023 peijiankang <peijiankang@kylinos.cn> - 3.1.2-3
- add build debuginfo and debugsource
* Tue Dec 6 2022 peijiankang <peijiankang@kylinos.cn> - 3.1.2-2
- modify install error