Custom PATH in KDE run dialog

It has bothered me for a while that the KDE run dialog (Alt+F2) won't find my custom scripts in ~/bin. After a failed attempt, with ~/.kde/env/bin_path, I found a way that should (in theory) work with any desktop manager.

The solution is to put the export command in a file called ~/.xprofile

export PATH="/home/thomas/bin:${PATH}:/home/thomas/installs/bin"

(I keep all my user installed apps in ~/installs/bin ;))


Hugo said...

This is cool!

Unknown said...

This doesn't seem to work with KDE/Plasma 5, even though it probably should. A workaround is to add a script to ~/config/plasma-workspace/env/ and export your updated PATH there.