From 4b7b3ec15c5c754065e15d7f3bb63614993d450b Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Wed, 9 Feb 2022 23:27:08 -0500 Subject: [PATCH] plasma-workspace: make krunner use the proper cwd see: - https://bugs.kde.org/show_bug.cgi?id=432975 - https://bugs.gentoo.org/767478 - https://gitweb.gentoo.org/proj/kde.git/tree/kde-plasma/plasma-workspace/files/plasma-workspace-5.22.5-krunner-cwd-at-home.patch?id=fdf904d0dbe13b7f91cb00d9720bc53e4b0f53fc --- .../patches/fix-krunner-cwd.patch | 31 +++++++++++++++++++ srcpkgs/plasma-workspace/template | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/plasma-workspace/patches/fix-krunner-cwd.patch diff --git a/srcpkgs/plasma-workspace/patches/fix-krunner-cwd.patch b/srcpkgs/plasma-workspace/patches/fix-krunner-cwd.patch new file mode 100644 index 000000000000..82c010859b01 --- /dev/null +++ b/srcpkgs/plasma-workspace/patches/fix-krunner-cwd.patch @@ -0,0 +1,31 @@ +Commit 7ca34e0baa7fa65efc929eee5b6b0c3d2104db8e already reverted one +change that caused the cwd of all apps spawned by krunner to +erroneously be set to the root dir. + +That regressions is back so it's more robust to fix in within krunner. + +Signed-off-by: Andrea Arcangeli +--- + krunner/main.cpp | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/krunner/main.cpp b/krunner/main.cpp +index 4593687ca..fa4a62ac4 100644 +--- a/krunner/main.cpp ++++ b/krunner/main.cpp +@@ -12,6 +12,7 @@ + #include + #include + #include ++#include + #include + #include + #include +@@ -112,5 +113,6 @@ int main(int argc, char **argv) + } + }); + ++ QDir::setCurrent(QDir::homePath()); + return app.exec(); + } + diff --git a/srcpkgs/plasma-workspace/template b/srcpkgs/plasma-workspace/template index 373f0e7f5ee3..aa0f67743bea 100644 --- a/srcpkgs/plasma-workspace/template +++ b/srcpkgs/plasma-workspace/template @@ -1,7 +1,7 @@ # Template file for 'plasma-workspace' pkgname=plasma-workspace version=5.23.5 -revision=1 +revision=2 build_style=cmake configure_args="-DBUILD_TESTING=OFF -DWaylandScanner_EXECUTABLE=/usr/bin/wayland-scanner