| Summary: | "KDEInit could not launch..." error when calling programs through shell scripts | ||
|---|---|---|---|
| Product: | [Plasma] plasmashell | Reporter: | Tristan Miller <psychonaut> |
| Component: | Application Launcher (Kickoff) widget | Assignee: | David Edmundson <kde> |
| Status: | RESOLVED INTENTIONAL | ||
| Severity: | normal | CC: | plasma-bugs-null |
| Priority: | NOR | ||
| Version First Reported In: | 5.5.5 | ||
| Target Milestone: | 1.0 | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| See Also: | https://bugs.kde.org/show_bug.cgi?id=353454 | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Tristan Miller
2016-08-19 11:31:08 UTC
Then don't do that. You break kinit; it's a broken setup. Use alias' or only set the PATH Also you'll find launching kinit5_wrapper kwrite achieves the same thing and will be considerably faster; (it'll fork from a process with Qt and everything preloaded, rather than forking from bash) It is not possible to use an alias with output redirection, so I don't think that's an acceptable solution. Regarding kdeinit5_wrapper (I assume "kinit5_wrapper" was a typo), thanks for the tip. But it has the disadvantage of invoking the command using $HOME as the current working directory. This means it's not possible to pass relative-path arguments to commands like kwrite (unless you happen to launch it from your home directory). That is, the following doesn't work: $ cd /tmp $ echo "Hello world" > foo.txt $ kdeinit5_wrapper kwrite foo.txt Is there any way of altering kdeinit5_wrapper's behaviour so that it doesn't change the working directory? (If not, would it be acceptable to file a feature request for a command-line parameter implementing this?) |