!9 fix screen show error

From: @tanyulong2021 
Reviewed-by: @pei-jiankang 
Signed-off-by: @pei-jiankang
This commit is contained in:
openeuler-ci-bot 2022-02-22 08:16:00 +00:00 committed by Gitee
commit 7f4d62d7aa
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 36 additions and 1 deletions

View File

@ -0,0 +1,30 @@
From 1e24386bfeec01911f33dc19c68171425316cd73 Mon Sep 17 00:00:00 2001
From: tanyulong2021 <tanyulong@kylinos.cn>
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

View File

@ -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 <tanyulong@kylinos.cn> - 1.0.0-6
- fix screenshot not show
* Fri Feb 10 2022 douyan <douyan@kylinos.cn> - 1.0.0-5
- add BuildRequires pulseaudio-libs-devel