diff --git a/fix-screenshot-not-show.patch b/fix-screenshot-not-show.patch new file mode 100644 index 0000000..a0d2501 --- /dev/null +++ b/fix-screenshot-not-show.patch @@ -0,0 +1,30 @@ +From 1e24386bfeec01911f33dc19c68171425316cd73 Mon Sep 17 00:00:00 2001 +From: tanyulong2021 +Date: Tue, 22 Feb 2022 14:49:13 +0800 +Subject: [PATCH] fix screenshot not show + +--- + kylin-screenshot.pro | 7 ++----- + 1 file changed, 2 insertions(+), 5 deletions(-) + +diff --git a/kylin-screenshot.pro b/kylin-screenshot.pro +index 3ffbc60..5ad2bd0 100755 +--- a/kylin-screenshot.pro ++++ b/kylin-screenshot.pro +@@ -315,11 +315,8 @@ unix:!macx { + + servicedbus.path = $${PREFIX}/share/dbus-1/services/ + +- packaging { +- servicedbus.files = dbus/package/org.dharkael.kylinscreenshot.service +- } else { +- servicedbus.files = dbus/make/org.dharkael.kylinscreenshot.service +- } ++ ++ servicedbus.files = dbus/package/org.dharkael.kylinscreenshot.service + + INSTALLS += target \ + icon \ +-- +2.33.0 + diff --git a/kylin-screenshot.spec b/kylin-screenshot.spec index ea66faa..60490d3 100644 --- a/kylin-screenshot.spec +++ b/kylin-screenshot.spec @@ -1,7 +1,7 @@ %define debug_package %{nil} Name: kylin-screenshot Version: 1.0.0 -Release: 5 +Release: 6 Summary: a powerful screenshot and screen recording tool License: GPL-3+ URL: https://github.com/ubuntukylin @@ -29,6 +29,7 @@ BuildRequires: gsettings-qt-devel patch0: 0001-fix-screenshot-service.patch patch1: 0001-add-save-dialog.patch patch2: optimize-the-undo-button-function.patch +patch3: fix-screenshot-not-show.patch %description Powerful yet simple-to-use screenshot software @@ -43,6 +44,7 @@ patch2: optimize-the-undo-button-function.patch %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %{qmake_qt5} %{_qt5_qmake_flags} CONFIG+=enable-by-default kylin-screenshot.pro @@ -93,6 +95,9 @@ rm -rf $RPM_BUILD_ROOT %{_datadir}/metainfo/kylinscreenshot.appdata.xml %changelog +* Tue Feb 22 2022 tanyulong - 1.0.0-6 +- fix screenshot not show + * Fri Feb 10 2022 douyan - 1.0.0-5 - add BuildRequires pulseaudio-libs-devel