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



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.

So, how can I make that myapp_entry.desktop runs /opt/bin/myapp without
using the absolute path in Exec=?

Thank you.
JIS.

___________________________________________________
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-linux] Mounting with exec flag
    ... I have a WD external drive and when I mount it through KDE, ... stuff), how can I tell it to mount this drive with the exec, flag? ... And I can copy a shell script to both devices and then execute ...
    (KDE)
  • Re: [kde-linux] Mounting with exec flag
    ... I have a WD external drive and when I mount it through KDE, ... stuff), how can I tell it to mount this drive with the exec, flag? ... And I can copy a shell script to both devices and then execute ...
    (KDE)
  • Re: [kde] How to tell konqueror to cache files locally before executing external programs?
    ... Juli 2007, Kevin Krammer wrote: ... file assocation's command, usually the "Exec" line of the application's ... This message is from the kde mailing list. ...
    (KDE)
  • Re: DFSORT anomaly?
    ... DFSORT Development, Performance Lead ... //NCPO511 EXEC PGM=NCPO511 ... Search the archives at http://bama.ua.edu/archives/ibm-main.html ... Elavon Financial Services Limited, trading as Elavon, is regulated ...
    (bit.listserv.ibm-main)
  • Re: Sequential D/S to PO D/S Member
    ... //ALLOC EXEC PGM=IEFBR14 ... IEBGENER will work as long as your SYSUT2 DD card has the member name ... send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO ... Search the archives at http://bama.ua.edu/archives/ibm-main.html ...
    (bit.listserv.ibm-main)