![]() Registered Member ![]()
|
KRunner doesn’t see my $PATH.
I have an executable file in ~/.config/plasma-workspace/env with the line
After upgrading Kubuntu 15.10, KDE 5.4.2, this doesn’t work anymore. Is there a new way to configure it? |
![]() ![]()
|
Did you try extending /etc/profile (to check whether krunner simply ignores $PATH or the env script is just not picked up)?
|
![]() Registered Member ![]()
|
Great! If I set $PATH in /etc/profile or ~/.profile KRunner uses it.
Thanks a lot. This solves my problem. Still I wonder, always for KRunner: openSUSE 13.1, KDE 3.5: Is was “enough” to set $PATH in /etc/bash.bashrc.local. Kubuntu 15.04, Plasma 5: It is possible to set $PATH in ~/.config/plasma-workspace/env/myConfig. Kubuntu 15.10, Plasma 5: It is possible to set $PATH in ~/.profile. Why the difference? What else can you with the env script? And: ~/.config/plasma-workspace is a path far way from ~/.kde. Why there? Is this path used for anything else? |
![]() ![]()
|
/etc/bash.bashrc.local is for bash - I guess other shells just read it
~/.config/* is just XDG conform, you could add ~/.kde/config to $XDG_CONFIG_HOME, so this is just alignment to standards that didn't exist when KDE introduced ~/.kde Now, the actual and $60.000 question is why krunner ignores your ~/.config/plasma-workspace/env config scripts. Are they generally sourced? Try a script that
re-login and "echo $FOO > /tmp/foo.test" from krunner and eg. konsole (and check /tmp/foo.test each time) |
![]() Registered Member ![]()
|
Neither KRunner nor Konsole know about $FOO. So the script isn’t run.
Could it be the permissions of the script? I tested 775 and 700, both with the same effect. |
![]() ![]()
|
No, that's fine. They're supposed to be sourced by /usr/bin/startkde which looks in
here - the script however needs to be suffixed *.sh |
![]() Registered Member ![]()
|
Sorry luebking, I am not sure if I understand that correctly. I’m not (yet :-) a KDE developer.
1. What is qtpaths-qt5? Part of qt5-devel-tools? Neither found on my computer nor in my Kubuntu repositories. When I search for it I find ... cygwin!? MS Windows? 2. Has my script in ~/.config/plasma-workspace/env to be suffixed *.sh? It always was. |
![]() ![]()
|
It's only named qtpaths in ubuntu, comes with qttools5-dev-tools and qtchooser proviodes a symlink (in /usr/bin)
If it's used in
|
![]() Registered Member ![]()
|
Alright, I have qtpaths
|
![]() ![]()
|
The startkde script seems to differ from mine, can you please paste it somewhere (eg. paste.kde.org)?
Also check
on whether that file actually exists. |
![]() Registered Member ![]()
|
Here you are: https://paste.kde.org/pwbrxsy1q
|
![]() ![]()
|
D'oohhh.
Replace line 211 by
Looked up history: Broke with https://git.reviewboard.kde.org/r/125323/ fixing commit should be linked there as well. |
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]