Re: [kde-linux] Help with desktop file, exec and PATH environment variable



On Friday 25 July 2008, jisaitua@xxxxxxxxxx wrote:
Hi,

I would appreciate if someone could help me with the following problem.
I'm running kubuntu hardy (KDE 3.5.9) and this is the situation:
- I have myapp in /usr/bin/myapp and in /opt/bin/myapp
- I also have myapp_entry.desktop in /usr/share/applications with
the Exec line as "Exec=myapp".
- I added /opt/bin into PATH (editing /etc/environment). So PATH
has the following:
/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/
games

Now, when I launch "kdialog --msgbox `echo $PATH`" using ALT+F2 it shows
correctly:
/opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/
games

When I launch "myapp" using ALT+F2 it runs /opt/bin/myapp as expected.
But, and here is my problem, when I launch "myapp_entry" using ALT+F2 it
runs /usr/bin/myapp and not /opt/bin/myapp as I would expect.

Depending on what the desktop-entry specification says this could be the
intended behavior, i.e. prefer the application on the same prefix as
the .desktop file over one in PATH.

For example in a scenario where you'd have myapp and myapp_entry.desktop both
in /usr/ and /usr/local, the respective menu entry would launch the
respective program.

However my guess is that it is actually a bug, so I suggest you file a bug
report against kdelibs. Might be just in time for KDE 3.5.10
Would be interesting to know if anyone with a KDE4 setup can reproduce it.

Cheers,
Kevin

--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: signature.asc
Description: This is a digitally signed message part.

___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Relevant Pages

  • Re: [kde] A few words about the Quality of KDE 4.2
    ... Thats horrible for every normal user, cause they don't write bug reports. ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: [kde-linux] KDE 4. Trying to get it working like I need it to.
    ... I'm thinking it is from KDE 3 by the way it looks. ... I'd say if you have the time file a bug report against Dolphin (will most ... Still strange that your test report reports values from a file that isn't ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: [kde] the windows list - the focus policy
    ... Sounds like a bug, the window of the task switcher should never be behind any ... Kevin Krammer, KDE developer, xdg-utils developer ... KDE user support, developer mentoring ...
    (KDE)
  • Re: [kde] Why KDE4 is called KDE?
    ... To even get too the folderview I'd have ... This is a nice demonstration how useful the added customization option ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)
  • Re: [kde] Keyboard problem in kde4
    ... that I should file a bug there - surely the default should be that the ... Might still be possible to launch individual kcontrol plugins using kcmshell ... Kevin Krammer, KDE developer, xdg-utils developer ...
    (KDE)