From 858f4bdce68f82aa40f37ae5ab849047e6536006 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Thu, 9 Dec 2021 16:03:25 -0600 Subject: [PATCH] 21.12.0 --- .gitignore | 1 + 0038-Port-to-KTerminalLauncherJob.patch | 97 ------------------------- dolphin.spec | 6 +- sources | 2 +- 4 files changed, 6 insertions(+), 100 deletions(-) delete mode 100644 0038-Port-to-KTerminalLauncherJob.patch diff --git a/.gitignore b/.gitignore index f56fd0f..bfdbee8 100644 --- a/.gitignore +++ b/.gitignore @@ -10,3 +10,4 @@ /dolphin-21.08.1.tar.xz /dolphin-21.08.2.tar.xz /dolphin-21.08.3.tar.xz +/dolphin-21.12.0.tar.xz diff --git a/0038-Port-to-KTerminalLauncherJob.patch b/0038-Port-to-KTerminalLauncherJob.patch deleted file mode 100644 index 1f04570..0000000 --- a/0038-Port-to-KTerminalLauncherJob.patch +++ /dev/null @@ -1,97 +0,0 @@ -From 27bfcde4efaf936243fc41e4a61d0cac32105ef6 Mon Sep 17 00:00:00 2001 -From: Nate Graham -Date: Tue, 31 Aug 2021 09:09:14 -0600 -Subject: [PATCH 38/38] Port to KTerminalLauncherJob - -Dolphin still uses KToolInvocation::invokeTerminal() which is -deprecated and requires KInit. However Dolphin was ported away from -requiring it in other ways, so it is now possible to have Dolphin -running but not KInit, which breaks the "Open in Terminal" -functionality. - -Using KTerminalLauncherJob fixes this. It was introduced in Frameworks -5.83, so the CMake dependency version is accordingly increased. - -BUG: 441072 -FIXED-IN: 21.12 ---- - CMakeLists.txt | 2 +- - src/dolphinmainwindow.cpp | 14 ++++++++++---- - src/dolphinpart.cpp | 6 ++++-- - 3 files changed, 15 insertions(+), 7 deletions(-) - -diff --git a/src/dolphinmainwindow.cpp b/src/dolphinmainwindow.cpp -index 62e347032..f3a5e3b4e 100644 ---- a/src/dolphinmainwindow.cpp -+++ b/src/dolphinmainwindow.cpp -@@ -56,10 +56,10 @@ - #include - #include - #include -+#include - #include - #include - #include --#include - #include - #include - #include -@@ -1033,7 +1033,9 @@ void DolphinMainWindow::openTerminal() - const QUrl url = m_activeViewContainer->url(); - - if (url.isLocalFile()) { -- KToolInvocation::invokeTerminal(QString(), {}, url.toLocalFile()); -+ auto job = new KTerminalLauncherJob(QString()); -+ job->setWorkingDirectory(url.toLocalFile()); -+ job->start(); - return; - } - -@@ -1047,14 +1049,18 @@ void DolphinMainWindow::openTerminal() - statUrl = job->mostLocalUrl(); - } - -- KToolInvocation::invokeTerminal(QString(), {}, statUrl.isLocalFile() ? statUrl.toLocalFile() : QDir::homePath()); -+ auto job = new KTerminalLauncherJob(QString()); -+ job->setWorkingDirectory(statUrl.isLocalFile() ? statUrl.toLocalFile() : QDir::homePath()); -+ job->start(); - }); - - return; - } - - // Nothing worked, just use $HOME -- KToolInvocation::invokeTerminal(QString(), {}, QDir::homePath()); -+ auto job = new KTerminalLauncherJob(QString()); -+ job->setWorkingDirectory(QDir::homePath()); -+ job->start(); - } - - void DolphinMainWindow::editSettings() -diff --git a/src/dolphinpart.cpp b/src/dolphinpart.cpp -index 9c551d67a..8d528f418 100644 ---- a/src/dolphinpart.cpp -+++ b/src/dolphinpart.cpp -@@ -32,7 +32,7 @@ - #include - #include - #include --#include -+#include - - #include - #include -@@ -567,7 +567,9 @@ QString DolphinPart::localFilePathOrHome() const - - void DolphinPart::slotOpenTerminal() - { -- KToolInvocation::invokeTerminal(QString(), {}, localFilePathOrHome()); -+ auto job = new KTerminalLauncherJob(QString()); -+ job->setWorkingDirectory(localFilePathOrHome()); -+ job->start(); - } - - void DolphinPart::slotFindFile() --- -2.31.1 - diff --git a/dolphin.spec b/dolphin.spec index fbd9d77..654f9a8 100644 --- a/dolphin.spec +++ b/dolphin.spec @@ -12,7 +12,7 @@ Name: dolphin Summary: KDE File Manager -Version: 21.08.3 +Version: 21.12.0 Release: 1%{?dist} License: GPLv2+ @@ -27,7 +27,6 @@ URL: https://invent.kde.org/system/dolphin Source0: http://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz ## upstream patches (master) -Patch38: 0038-Port-to-KTerminalLauncherJob.patch # for %%check BuildRequires: desktop-file-utils @@ -175,6 +174,9 @@ make test ARGS="--output-on-failure --timeout 10" -C %{_target_platform} ||: %changelog +* Thu Dec 09 2021 Rex Dieter - 21.12.0-1 +- 21.12.0 + * Tue Nov 02 2021 Rex Dieter - 21.08.3-1 - 21.08.3 diff --git a/sources b/sources index 70a69c6..f0106cf 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (dolphin-21.08.3.tar.xz) = 918be8ff9ac01ce9e9f0f575a31e70687b24edc08f022cc991922a136bda5900f5cc431b056d2aac8349858e3b9592c365b1cfa8e4bbf01f86eb7be8cbca751e +SHA512 (dolphin-21.12.0.tar.xz) = 57251de213d26266af10345d5b7fc9462a06c2d7a37bf0d85ff0a9838d0c86e7f2ac34fe7ab11e4ddf1e4f0a16028cdf2bb710948ce42ebec524029c2515b806