Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
07e12fc4e5
!30 fix wrong assignment operator implementation
From: @hou-hongxun 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2024-05-07 09:17:13 +00:00
侯红勋
d4955f572e fix wrong assignment operator implementation
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
2024-04-25 10:08:41 +08:00
openeuler-ci-bot
2fdbfa520c
!27 [sync] PR-25: fix ukui-notification-daemon SIGSEGV
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-07-27 05:45:40 +00:00
peijiankang
40673559c9 fix ukui-notification-daemon SIGSEGV
(cherry picked from commit a9cb344872bd6428f3a6ff5120fc002aec0f9ecd)
2023-07-27 11:15:46 +08:00
openeuler-ci-bot
15939fff2a
!21 [sync] PR-20: spec文件修改
From: @openeuler-sync-bot 
Reviewed-by: @dou33 
Signed-off-by: @dou33
2023-03-14 08:58:41 +00:00
dou33
c961cf7fc2 add Provides:desktop-notification-daemon
(cherry picked from commit 0d4cc0a624af2c477473828197647ab5f4b9d275)
2023-03-14 16:49:53 +08:00
openeuler-ci-bot
64a9c8ebee
!19 Enable debuginfo for fix strip
From: @tanyulong2021 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-02-08 08:51:57 +00:00
tanyulong2021
d0168f4c36 Enable debuginfo for fix strip 2023-02-07 14:28:47 +08:00
openeuler-ci-bot
137a62a67c
!18 add ukui notification daemon zn_CN
From: @jackssir 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2022-12-30 07:31:12 +00:00
lvfei
e0da85f87b add ukui notification daemon zn_CN 2022-12-29 22:02:14 -05:00
4 changed files with 100 additions and 4 deletions

Binary file not shown.

View File

@ -0,0 +1,43 @@
From ed4f2fb961c274d99c8ca66c232ca13b6e855f61 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E4=BE=AF=E7=BA=A2=E5=8B=8B?= <houhongxun@kylinos.cn>
Date: Thu, 25 Apr 2024 09:41:37 +0800
Subject: [PATCH] fix wrong assignment operator implementation
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: 侯红勋 <houhongxun@kylinos.cn>
---
src/notifyreceiveinfo.cpp | 16 ++++++++++++++--
1 file changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/notifyreceiveinfo.cpp b/src/notifyreceiveinfo.cpp
index 0c28cd1..8c1e04e 100644
--- a/src/notifyreceiveinfo.cpp
+++ b/src/notifyreceiveinfo.cpp
@@ -49,8 +49,20 @@ notifyReceiveInfo::notifyReceiveInfo(const notifyReceiveInfo &notify) :
notifyReceiveInfo &notifyReceiveInfo::operator=(const notifyReceiveInfo &notify)
{
- notifyReceiveInfo ent(notify);
- return ent;
+ m_appName = notify.m_appName;
+ m_id = notify.m_id;
+ m_appIcon = notify.m_appIcon;
+ m_summary = notify.m_summary;
+ m_body = notify.m_body;
+ m_actions = notify.m_actions;
+ m_hints = notify.m_hints;
+ m_ctime = notify.m_ctime;
+ m_replacesId = notify.m_replacesId;
+ m_timeout = notify.m_timeout;
+ m_urlStr = notify.m_urlStr;
+ m_actionStr = notify.m_actionStr;
+
+ return *this;
}
QString notifyReceiveInfo::appName() const
--
2.43.0

View File

@ -0,0 +1,28 @@
From 0e06e1110a0ea4fcff9ff3380ad657d80db95305 Mon Sep 17 00:00:00 2001
From: peijiankang <peijiankang@kylinos.cn>
Date: Fri, 21 Jul 2023 17:19:50 +0800
Subject: [PATCH] fix ukui-notification-daemon SIGSEGV
---
src/main.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/main.cpp b/src/main.cpp
index 0309f7b..0bc1028 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -36,6 +36,11 @@
int getScreenWidth() {
Display *disp = XOpenDisplay(NULL);
+ if (disp == NULL) {
+ fprintf(stderr, "Cannot connect to X server\n");
+ return 0;
+ }
+
Screen *scrn = DefaultScreenOfDisplay(disp);
if (NULL == scrn) {
return 0;
--
2.33.0

View File

@ -1,12 +1,13 @@
%define debug_package %{nil}
Name: ukui-notification-daemon Name: ukui-notification-daemon
Version: 3.3.1 Version: 3.3.1
Release: 1 Release: 6
Summary: daemon to display passive popup notifications Summary: daemon to display passive popup notifications
License: GPL-3+ License: GPL-3+
URL: https://github.com/ukui/ukui-notification-daemon URL: https://github.com/ukui/ukui-notification-daemon
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
Patch01: 0001-add-translations-file.patch
Patch02: 0002-fix-ukui-notification-daemon-SIGSEGV.patch
Patch03: 0001-fix-wrong-assignment-operator-implementation.patch
BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qtsvg-devel
@ -22,6 +23,8 @@ Requires: gsettings-qt
Requires: libX11 Requires: libX11
Requires: dconf Requires: dconf
Provides: desktop-notification-daemon
%description %description
daemon to display passive popup notifications daemon to display passive popup notifications
ukui-notification-daemon displays passive popup notifications, as per ukui-notification-daemon displays passive popup notifications, as per
@ -36,6 +39,9 @@ Desktop Notifications spec.
%prep %prep
%setup -q %setup -q
%patch -p1 1
%patch -p1 2
%patch -p1 3
%build %build
export PATH=%{_qt5_bindir}:$PATH export PATH=%{_qt5_bindir}:$PATH
@ -58,8 +64,27 @@ popd
%{_datadir}/dbus-1/services/org.ukui.freedesktop.Notification.service %{_datadir}/dbus-1/services/org.ukui.freedesktop.Notification.service
%{_datadir}/glib-2.0/schemas/org.ukui.notification.gschema.xml %{_datadir}/glib-2.0/schemas/org.ukui.notification.gschema.xml
%{_datadir}/glib-2.0/schemas/org.ukui.log4qt.ukui-notification.gschema.xml %{_datadir}/glib-2.0/schemas/org.ukui.log4qt.ukui-notification.gschema.xml
%{_datadir}/ukui-notification-daemon/ukui-notification-daemon_zh_CN.qm
%changelog %changelog
* Thu Apr 25 2024 houhongxun <houhongxun@kylinos.cn> - 3.3.1-6
- fix wrong assignment operator implementaion
* Fri Jul 21 2023 peijiankang <peijiankang@kylinos.cn> - 3.3.1-5
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add Patch2: 0002-fix-ukui-notification-daemon-SIGSEGV.patch
* Tue Mar 14 2023 douyan <douyan@kylinos.cn> - 3.3.1-4
- add Provides: desktop-notification-daemon
* Tue Feb 07 2023 tanyulong <tanyulong@kylinos.cn> - 3.3.1-3
- Enable debuginfo for fix strip
* Fri Dec 30 2022 lvfei <lvfei@kylinos.cn> - 3.3.1-2
- add patch :0001-add-translations-file.patch
* Thu Nov 10 2022 douyan <douyan@kylinos.cn> - 3.3.1-1 * Thu Nov 10 2022 douyan <douyan@kylinos.cn> - 3.3.1-1
- update to upstream version 3.3.1.0225.1 - update to upstream version 3.3.1.0225.1