PDA

View Full Version : .desktop problem



gcharb
May 15th, 2018, 06:52 PM
Hello everyone, first post here! :D

I have installed an application, copied the folder to opt, the software starts no problem from the folder when I click the program icon, then I created a shortcut with alacarte, the shortcut appears in show application, but nothing happens when I click on the shortcut, I checked permissions, they are the same as other folders in opt from which shortcuts work without a glitch, anyone has an idea as of how to solve this?

Thanks in advance for any help!

Gilles

monkeybrain20122
May 15th, 2018, 08:25 PM
What is the Exec= line of the .desktop file? Is alacarte still around? Which Ubuntu (what DE) is that?

gcharb
May 15th, 2018, 09:05 PM
Hello, and thanks for the reply!

Ubuntu 18.04, the Exec = sh /opt/3DCoat-4.8.15d/3D-Coat.sh, yes, alacarte is still around, but I also made the .desktop manually, same results, here is the full .desktop content, as I mentioned, if I click 3d-coat.sh, 3d coat starts no problem!

[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Terminal=false
Exec=sh /opt/3DCoat-4.8.15d/3D-Coat.sh
Name=3D-Coat
Icon=/opt/3DCoat-4.8.15d/3D-Coat.ico
Comment=Run 3D-Coat
Categories=Graphics

Thanks again, Gilles

kerry_s
May 15th, 2018, 10:18 PM
you don't need the "sh" part just "/opt/3DCoat-4.8.15d/3D-Coat.sh" is fine.
make sure "3D-Coat.sh" is executable.

chmod +x /opt/3DCoat-4.8.15d/3D-Coat.sh
or
sudo chmod +x /opt/3DCoat-4.8.15d/3D-Coat.sh

run it form terminal to check for errors.
/opt/3DCoat-4.8.15d/3D-Coat.sh