[Bug 242834] New: .desktop shortcuts don't respect $PATH
Jeremy
jsatt22 at gmail.com
Sat Jun 26 01:56:42 BST 2010
https://bugs.kde.org/show_bug.cgi?id=242834
Summary: .desktop shortcuts don't respect $PATH
Product: kde
Version: unspecified
Platform: Ubuntu Packages
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
AssignedTo: unassigned-bugs at kde.org
ReportedBy: jsatt22 at gmail.com
Created an attachment (id=48339)
--> (http://bugs.kde.org/attachment.cgi?id=48339)
Example of .desktop file which experiences this issue
Version: unspecified (using KDE 4.4.2)
OS: Linux
I have added $HOME/bin to the beginning of $PATH, but .desktop files seem to
ignore versions of executables in $HOME/bin if a "system installed"
(/usr/bin,/usr/sbin,etc...) exists even though $HOME/bin comes first in $PATH.
I have tried adding "export PATH=$HOME/bin:$PATH" to ~/.profile, ~/.bashrc,
~/.kde/env/path.sh, and /etc/environment. ALL of them update the PATH and allow
for executing the correct $HOME/bin executables when executing from a terminal
session. However NONE of them execute the correct version from any .desktop
files, the KDE Run Command window or xdg-open. All desktop shortcuts are saved
without an absolute path ("firefox" instead of "/usr/bin/firefox").
I have deleted ~/.kde and ~/.kde4 and also created a brand new user using
adduser command from terminal and still have the issue. I have added "echo
$PATH" to ~/.kde/Autostart/echo and checking ~/.xsession-errors showed a PATH
identical to what is output from the terminal (in the correct order).
Reproducible: Always
Steps to Reproduce:
Update path with "export PATH=$HOME/bin:$PATH"
Install an executable in $HOME/bin with the same name as a system installed
version (/usr/bin)
create a .desktop shortcut or execute from Run Command dialog the executable
without an absolute path
Actual Results:
executes the "system installed" executable
Expected Results:
should execute $HOME/bin version of executable
I am currently using Kubuntu 10.04 and for a short time openSuSE 11.2 both with
KDE 4.4.2. I did not experience this issue Kubuntu 9.10.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list