PDA

View Full Version : [SOLVED] *.desktop file in Unity



ELMIT
September 27th, 2016, 04:23 AM
I have a program: CAT.jar for which I made a C.A.T.desktop file:


[Desktop Entry]
Type=Application
Name=C.A.T.
Comment=C.A.T. Cryptocurrency Automatic Trader
Exec=java /home/ronald/C.A.T./CAT.jar
Icon=/home/ronald/C.A.T./cat-xxl.png
Terminal=false
Categories=Trading;Office;


I put C.A.T.desktop into the directory /home/ronald/C.A.T./

While the Exec statement is startable in a terminal, a click on that file in nautilus will not do anything.

What am I doing wrong?

CantankRus
September 27th, 2016, 04:48 AM
Try as the Exec...

/usr/bin/java -jar '/home/ronald/C.A.T./CAT.jar'
Is the desktop file executable?

PS: .desktop files placed in ~/.local/share/applications will show in application menus like the unity dash.

ELMIT
September 27th, 2016, 06:12 AM
I got one step further. When I click now on the destop icon I get:


The application launcher “C.A.T.desktop” has not been marked as trusted. If you do not know the source of this file, launching it may be unsafe.

ELMIT
September 27th, 2016, 06:16 AM
chmod +x C.A.T.desktop helped ;-)