Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

This question already has an answer here:

I'd like to override one of the applications set in /usr/bin/. I have created an alternative with the same name in ~/bin/ which in in my PATH (as set both in .bashrc and in .profile).

When I start the application from the console, I get the expected result: my application is started instead of one from the distribution.

However, within KDE, when I do alt+F2 and type in the application name, the one in /usr/bin starts instead of the one in ~/bin/.

How do I set KDE so that ~/bin is recognized from everywhere in KDE.

I'll probably also have to edit the K-menu, although I am not sure how to do it with KDE4.

share|improve this question

marked as duplicate by jasonwryan, slm, Hauke Laging, Renan, Mat Jul 1 '13 at 4:28

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2 Answers 2

up vote 1 down vote accepted

Thirs hit in google for 'KDE environment variables' is this which seems to be what you're looking for.

(You can also configure the login manager to export a specific $PATH - the man page for xdm illustrates how to do this)

share|improve this answer

On my system there is a directory

$HOME/.kde/env

All the scripts that directory that end in .sh are executed. I for instance have a script there called profile.sh that contains the following:

#!/bin/sh
export LC_TIME=en_DK.utf8  # ISO 8601 dates
[ "$LC_ALL" != "$LC_TIME" ] && unset LC_ALL

to make sure that Firefox and Thunderbird use international standards for date and time.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.