To launch it, I have created a .desktop file and I set the "Path" variable to the /opt/program directory where the executable and the other needed files are installed.
It works fine with GNOME, XFCE, KDE and other desktop environments, but LXDE seems to ignore that variable and does not change the working dir before executing the program, so it can not work.
I noticed that if I double click the icon browsing the /usr/share/applications folder, the link works; but if I click it inside the LXDE Applications menu, it does not work and my programs claims it can not find the files.
Is this a LXDE bug I haven't noticed? Is my .desktop file wrong? How can I solve? Here is the code (that works with all the other windows manager):
Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=PPong
Name[it_IT]=PPong
Exec=/opt/ppong/ppong
Icon=/opt/ppong/data/icon.png
Comment[it_IT]=Gioco ispirato ad Arkanoid
Path=/opt/ppong
Categories=Game;
Thanks in advance!