This forum has been archived. All content is frozen. Please use KDE Discuss instead.

krunner does not see my $PATH after upgrade to Kubuntu 12.10

Tags: None
(comma "," separated)
street spirit
Registered Member
Posts
19
Karma
0
I recently upgraded from Kubuntu 12.04 (LTS) to 13.04 (using KDE 4.10.4).

Before the upgrade, krunner launched via Alt+F2 would respect a custom $PATH set in .bashrc, but this seems to work differently now.

In my .bashrc, I adjust the $PATH to include /home/username/bin. This works as expected in a terminal, but not when I try to run something from ~/bin after pressing Alt+F2. A little testing suggests that KDE isn't reading any .bash* config files at startup (anymore?).

Has this behavior been changed?
And how do I get krunner to see my custom $PATH now?

When I start krunner from konsole, the paths work like they used to, probably because krunner inherits the environment from bash.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
It is not likely KDE which has changed in this case, but the shell interpreter which runs the initial KDE startup phase.
To fix this, you could put an executable *.sh file in $KDEHOME/env/ which sources the necessary files.

If not defined, you can determine KDEHOME by running "kde4-config --localprefix".
It is usually ~/.kde4/ or ~/.kde/


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
street spirit
Registered Member
Posts
19
Karma
0
Thank you, that worked.

For the record, I found out the hard way that I can't just set $PATH to anything I want, like I do for interactive shells.
When I tried that, KDE couldn't find its own components anymore (I think).
The error showed up as an xmessage: "Could not start D-Bus. Can you call qdbus?".
So, instead of hard-coding the $PATH from scratch, use `export PATH=$PATH:/my/own:/paths`.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Yes, KDE requires that it's own installation prefix (and several of it's other dependencies) is included in PATH. Particular dependencies which need to be included are shared-mime-database, dbus and Qt.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
User avatar
hermantowawan
Registered Member
Posts
70
Karma
0
after upgrade often any problem.
usually reinstall again.


I Am Still Learning About KDE
User avatar
chans
Registered Member
Posts
9
Karma
0
put a .sh file with the necessary paths in ~/.kde/env.


Newbie


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]