0

i have installed a program via github in:
/home/user/folder/program.

to get this to run via the terminal i use the following commands.
cd folder
sudo ./program

but i would like to have a short cut and tried to make one via alacarte.
filled in the following data:

name: programname (is not the same as the actual name of the program in the folder)
command: /home/user/folder/program.
icon: changed the icon into a local file. icon.ico
clicked the: launch in terminal?

i now find the "programname" with the correct icon but when i try to run it a icon appears in the nautilus taskbar that starts to blink for a while and then disappears. Also no terminal is opened.

i assume this has to do with an error in the command line: just don't know how to correct it.

hope someone is willing to enlighten me on my error.

Kind regards

Matthieu

1 Answers1

1

You can take inspiration from the similar question here.

You can call the application in the .desktop file as:

# Exec= gksudo -k -u root <absolute path to your executable>
Exec= gksudo -k -u root /home/user/folder/program
AmeyaVS
  • 596
  • 5
  • 15