Compare commits

...

12 Commits

Author SHA1 Message Date
openeuler-ci-bot
6b3e9cc9fd
!26 [sync] PR-25: fix ukui-notification-daemon SIGSEGV
From: @openeuler-sync-bot 
Reviewed-by: @peijiankang 
Signed-off-by: @peijiankang
2023-07-27 05:45:53 +00:00
peijiankang
1171775037 fix ukui-notification-daemon SIGSEGV
(cherry picked from commit a9cb344872bd6428f3a6ff5120fc002aec0f9ecd)
2023-07-27 11:15:43 +08:00
openeuler-ci-bot
4b3037e29c
!23 update new version 3.3.1
From: @peijiankang 
Reviewed-by: @dou33 
Signed-off-by: @dou33
2023-05-23 07:33:35 +00:00
peijiankang
996eec0272 update new version 3.3.1 2023-05-23 10:37:04 +08:00
openeuler-ci-bot
260d234239
!6 update to uptream version 1.0.4
From: @tanyulong2021 
Reviewed-by: @dou33 
Signed-off-by: @dou33
2022-03-02 05:56:35 +00:00
tanyulong2021
a2bcbaa145 update to uptream version 1.0.4 2022-03-02 13:44:49 +08:00
openeuler-ci-bot
c7952d925c !5 - update to upstream version 1.0.1-1
From: @myshow2258
Reviewed-by: @dou33
Signed-off-by: @dou33
2021-02-06 14:43:34 +08:00
lvhan
81fc939183 - update to upstream version 1.0.1-1 2021-02-04 15:29:03 +08:00
openeuler-ci-bot
f399a847f5 !4 sync
From: @myshow2258
Reviewed-by: @dou33
Signed-off-by: @dou33
2021-01-26 10:00:47 +08:00
openeuler-ci-bot
dc76f55ab6 !2 package init
From: @dou33
Reviewed-by: @handsome_feng
Signed-off-by: @handsome_feng
2020-11-12 09:59:54 +08:00
openeuler-ci-bot
42306717e3 !1 package init
From: @dou33
Reviewed-by: @handsome_feng
Signed-off-by: @handsome_feng
2020-11-12 09:59:51 +08:00
dou33
89f629597e package init 2020-11-12 09:53:12 +08:00
5 changed files with 125 additions and 0 deletions

Binary file not shown.

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

Binary file not shown.

View File

@ -0,0 +1,93 @@
Name: ukui-notification-daemon
Version: 3.3.1
Release: 5
Summary: daemon to display passive popup notifications
License: GPL-3+
URL: https://github.com/ukui/ukui-notification-daemon
Source0: %{name}-%{version}.tar.gz
Patch01: 0001-add-translations-file.patch
Patch02: 0002-fix-ukui-notification-daemon-SIGSEGV.patch
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qttools-devel
BuildRequires: dconf-devel
BuildRequires: glib2-devel
BuildRequires: gsettings-qt-devel
BuildRequires: libX11-devel
BuildRequires: libcanberra-devel
BuildRequires: ukui-interface
Requires: gsettings-qt
Requires: libX11
Requires: dconf
Provides: desktop-notification-daemon
%description
daemon to display passive popup notifications
ukui-notification-daemon displays passive popup notifications, as per
the Desktop Notifications Specification.
The Desktop Notifications Specification provides a standard way of
doing passive popup notifications on the Linux desktop. These are
designed to notify the user of something without interrupting their
work with a dialog box that they must close. Passive popups can
automatically disappear after a short period of time, as per the
Desktop Notifications spec.
%prep
%setup -q
%patch01 -p1
%patch02 -p1
%build
export PATH=%{_qt5_bindir}:$PATH
mkdir qmake-build
pushd qmake-build
%{qmake_qt5} ..
%{make_build}
popd
%install
pushd qmake-build
%{make_install} INSTALL_ROOT=%{buildroot}
popd
%files
%doc debian/changelog
%license debian/copyright
%{_prefix}/lib/ukui-notification-daemon/ukui-notifications
%{_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.log4qt.ukui-notification.gschema.xml
%{_datadir}/ukui-notification-daemon/ukui-notification-daemon_zh_CN.qm
%changelog
* 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
- update to upstream version 3.3.1.0225.1
* Wed Mar 02 2022 tanyulong <tanyulong@kylinos.cn> - 1.0.4-1
- update to uptream version 1.0.4
* Thu Feb 4 2021 lvhan <lvhan@kylinos.cn> - 1.0.1-2
- update to upstream version 1.0.1-1
* Wed Nov 11 2020 douyan <douyan@kylinos.cn> - 1.0.1-1
- update to upstream version 1.0.0-1+1031

View File

@ -0,0 +1,4 @@
version_control: github
src_repo: https://github.com/ukui/ukui-notification-daemon.git
tag_prefix: "v"
separator: "."