!7 fix desktop notificatio window show error
From: @dou33 Reviewed-by: @tanyulong2021 Signed-off-by: @tanyulong2021
This commit is contained in:
commit
a317e5f172
12
fix-desktop-notification-window-show-error.patch
Normal file
12
fix-desktop-notification-window-show-error.patch
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
diff -Naur kylin-nm-3.0.2/src/utils.cpp kylin-nm-3.0.2~/src/utils.cpp
|
||||||
|
--- kylin-nm-3.0.2/src/utils.cpp 2019-05-27 15:48:18.000000000 +0800
|
||||||
|
+++ kylin-nm-3.0.2~/src/utils.cpp 2021-10-26 14:59:00.660899943 +0800
|
||||||
|
@@ -83,7 +83,7 @@
|
||||||
|
QList<QVariant> args;
|
||||||
|
args<<(QCoreApplication::applicationName())
|
||||||
|
<<((unsigned int) 0)
|
||||||
|
- <<QString("qweq")
|
||||||
|
+ <<QString("/usr/share/icons/ukui-icon-theme-default/22x22/devices/network-wired.png")
|
||||||
|
<<tr("kylin network applet desktop message") //显示的是什么类型的信息
|
||||||
|
<<message //显示的具体信息
|
||||||
|
<<QStringList()
|
||||||
@ -1,11 +1,13 @@
|
|||||||
Name: kylin-nm
|
Name: kylin-nm
|
||||||
Version: 3.0.2
|
Version: 3.0.2
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Gui Applet tool for display and edit network simply
|
Summary: Gui Applet tool for display and edit network simply
|
||||||
License: GPL-3+
|
License: GPL-3+
|
||||||
URL: https://github.com/ukui/kylin-nm/
|
URL: https://github.com/ukui/kylin-nm/
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
Patch0: fix-desktop-notification-window-show-error.patch
|
||||||
|
|
||||||
BuildRequires: qt5-qtbase-devel
|
BuildRequires: qt5-qtbase-devel
|
||||||
BuildRequires: qtchooser
|
BuildRequires: qtchooser
|
||||||
BuildRequires: qt5-qtscript-devel
|
BuildRequires: qt5-qtscript-devel
|
||||||
@ -24,6 +26,7 @@ Requires: network-manager-applet
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-nm.pro
|
%{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-nm.pro
|
||||||
@ -50,6 +53,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man1/kylin-nm.1.gz
|
%{_mandir}/man1/kylin-nm.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 26 2021 douyan <douyan@kylinos.cn> - 3.0.2-3
|
||||||
|
- add Patch:fix-desktop-notification-window-show-error.patch
|
||||||
|
|
||||||
* Mon Oct 25 2021 douyan <douyan@kylinos.cn> - 3.0.2-2
|
* Mon Oct 25 2021 douyan <douyan@kylinos.cn> - 3.0.2-2
|
||||||
- update URL
|
- update URL
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user