Github messages for voidlinux
 help / color / mirror / Atom feed
From: classabbyamp <classabbyamp@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] plasma-workspace: make krunner use the proper cwd
Date: Thu, 10 Feb 2022 05:29:24 +0100	[thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35500@inbox.vuxu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1512 bytes --]

There is a new pull request by classabbyamp against master on the void-packages repository

https://github.com/classabbyamp/void-packages krunner-cwd
https://github.com/void-linux/void-packages/pull/35500

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

<!-- Uncomment relevant sections and delete options which are not applicable -->

#### Testing the changes
- I tested the changes in this PR: **YES**

<!--
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**|**NO**
-->

<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!-- 
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
  - aarch64-musl
  - armv7l
  - armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/35500.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-krunner-cwd-35500.patch --]
[-- Type: text/x-diff, Size: 2266 bytes --]

From 4b7b3ec15c5c754065e15d7f3bb63614993d450b Mon Sep 17 00:00:00 2001
From: classabbyamp <dev@kb6.ee>
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 <aarcange@redhat.com>
+---
+ 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 <QDBusConnection>
+ #include <QDBusMessage>
+ #include <QDebug>
++#include <QDir>
+ #include <QQuickWindow>
+ #include <QSessionManager>
+ #include <QUrl>
+@@ -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

             reply	other threads:[~2022-02-10  4:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-10  4:29 classabbyamp [this message]
2022-02-10 15:50 ` Vistaus
2022-02-10 15:51 ` Vistaus
2022-02-10 20:23 ` classabbyamp
2022-02-10 21:33 ` Johnnynator
2022-02-15 20:48 ` [PR PATCH] [Closed]: " Johnnynator

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-35500@inbox.vuxu.org \
    --to=classabbyamp@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).