Hello, having a problem with .desktop entries not being able to see executables in my local bin folder.
FYI: I'm on Debian "Testing" 64-bit, Xfce 4.10.
It's happening with various programs, but just for testing purposes, I compiled a simple form with Lazarus, called it "testthis" and put it in ~/.local/bin.
I have $HOME/.local/bin in my $PATH.
If I type the name of the program in a terminal, it runs.
If I double-click the executable from the file manager, it runs.
BUT, if I have it called via a .desktop file from the main menu, it doesn't run.
If I type in a terminal "exo-open ~/.local/share/applications/test.desktop" it runs.
If I put the .desktop entry on my Desktop, I double-click it and it pops up a message box titled "Launch error" with this error message:
Quote:
Failed to run "testthis.desktop"
Failed to execute child process "testthis" (No such file or directory)
|
Now, if I have just the name of the program in the .desktop file:
then it gives the error.
If I put the full path in:
Code:
Exec=/home/hpp3/.local/bin/testthis
then it runs fine.
Also, if I run a script from the .desktop file that runs a program in my local bin just by name, it doesn't work either.
The Freedesktop spec says that the $PATH is searched:
http://standards.freedesktop.org/des...exec-variables
Quote:
The Exec key must contain a command line. A command line consists of an executable program optionally followed by one or more arguments. The executable program can either be specified with its full path or with the name of the executable only. If no full path is provided the executable is looked up in the $PATH environment variable used by the desktop environment.
|
What's going on here?
P.S. I have tried changing the execute permissions on the desktop file; doesn't do anything