diff --git a/0001-fix-share-error-of-peony.patch b/0001-fix-share-error-of-peony.patch new file mode 100644 index 0000000..51be073 --- /dev/null +++ b/0001-fix-share-error-of-peony.patch @@ -0,0 +1,28 @@ +From cd35751b5c23c0ed0b2e81026619fd2750ad19d9 Mon Sep 17 00:00:00 2001 +From: peijiankang +Date: Tue, 6 Jun 2023 17:26:46 +0800 +Subject: [PATCH] fix share error of peony + +--- + libpeony-qt/usershare-manager.cpp | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/libpeony-qt/usershare-manager.cpp b/libpeony-qt/usershare-manager.cpp +index 48c719d..0849dc7 100644 +--- a/libpeony-qt/usershare-manager.cpp ++++ b/libpeony-qt/usershare-manager.cpp +@@ -84,8 +84,9 @@ QString UserShareInfoManager::exectueCommand (QStringList& args, bool* retb /* o + proc.open(); + + // Check whether sambashare exists and contains the current user +- QProcess::execute ("bash pkexec /usr/bin/peony-share.sh", QStringList() << g_get_user_name () << sharedPath); +- ++ QString cmdtest = QString("pkexec /usr/bin/peony-share.sh %1 %2").arg(g_get_user_name()).arg(sharedPath); ++ QProcess::execute (cmdtest); ++ + // Shared folder + args.prepend ("net"); + proc.start("bash"); +-- +2.33.0 + diff --git a/peony.spec b/peony.spec index bf7eeda..c028069 100644 --- a/peony.spec +++ b/peony.spec @@ -1,10 +1,11 @@ Name: peony Version: 3.10.0 -Release: 2 +Release: 3 Summary: file Manager for the UKUI desktop License: GPL-3.0-or-later and MIT and BSD-3-Clause URL: http://www.ukui.org Source0: %{name}-%{version}.tar.gz +Patch01: 0001-fix-share-error-of-peony.patch BuildRequires: libudisks2-devel BuildRequires: libnotify-devel @@ -77,6 +78,7 @@ Provides: libpeony %prep %setup -q +%patch01 -p1 %build %{qmake_qt5} @@ -133,6 +135,9 @@ rm -rf $RPM_BUILD_ROOT %{_prefix}/%{_lib}/*.so %changelog +* Tue Jun 06 2023 peijiankang - 3.10.0-3 +- fix share error of peony + * Tue Feb 07 2023 peijiankang - 3.10.0-2 - add build debuginfo and debugsource