mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-20 03:43:45 +00:00
kdePackages.kio: resolve full paths to executables from the caller
We can't rely on systemd here because it doesn't have PATH.
This commit is contained in:
parent
2279c02ec5
commit
0ff2232bdb
@ -10,8 +10,10 @@ mkKdeDerivation {
|
||||
|
||||
patches = [
|
||||
# Remove hardcoded smbd search path
|
||||
# FIXME(later): discuss with upstream?
|
||||
./0001-Remove-impure-smbd-search-path.patch
|
||||
# When running a process through systemd, resolve the full path ourselves
|
||||
./early-resolve-executables.diff
|
||||
# FIXME(later): discuss with upstream?
|
||||
];
|
||||
|
||||
extraBuildInputs = [qt5compat qttools acl attr];
|
||||
|
13
pkgs/kde/frameworks/kio/early-resolve-executables.diff
Normal file
13
pkgs/kde/frameworks/kio/early-resolve-executables.diff
Normal file
@ -0,0 +1,13 @@
|
||||
diff --git a/src/gui/systemd/systemdprocessrunner.cpp b/src/gui/systemd/systemdprocessrunner.cpp
|
||||
index afe3e2c69..5e5ee012d 100644
|
||||
--- a/src/gui/systemd/systemdprocessrunner.cpp
|
||||
+++ b/src/gui/systemd/systemdprocessrunner.cpp
|
||||
@@ -128,7 +128,7 @@ void SystemdProcessRunner::startProcess()
|
||||
// so we can be notified (see https://github.com/systemd/systemd/pull/3984)
|
||||
{QStringLiteral("Environment"), m_process->environment()},
|
||||
{QStringLiteral("WorkingDirectory"), m_process->workingDirectory()},
|
||||
- {QStringLiteral("ExecStart"), QVariant::fromValue(ExecCommandList{{m_process->program().first(), m_process->program(), false}})},
|
||||
+ {QStringLiteral("ExecStart"), QVariant::fromValue(ExecCommandList{{QStandardPaths::findExecutable(m_process->program().first()), m_process->program(), false}})},
|
||||
},
|
||||
{} // aux is currently unused and should be passed as empty array.
|
||||
);
|
Loading…
Reference in New Issue
Block a user