I've created a desktop entry in ~/.local/share/applications. It looks similiar to the following:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Crontona Server
GenericName=CA Server
Comment=BDAF server for Crontona
Exec=bash "/usr/local/crontona/run.sh"
Icon=/usr/local/crontona/app.ico
Terminal=true
Type=Application
It show's up in the Unity launcher and everything, but whenever I click it, the terminal just pops up but instantly closes. I have no problems at all with using 'bash ./.....run.sh' but I've had no success through the menu. Any idea why it happens?
This is the content of the run.sh file:
#!/bin/bash
./corona_run -prot tcp +maxcon 16
Exec=/usr/local/crontona/run.sh? – glenn jackman May 8 '12 at 18:59/usr/local/crontona/run.sh(Permission denied)". Seems like a permission problem... Then, how do I execute 'with' permission through a desktop shortcut? – Elliott Darfink May 8 '12 at 19:03ls -la /usr/local/crontona/run.shsay? – SirCharlo May 8 '12 at 19:20Exec=sudo /usr/local/crontona/run.sh-- I'm not familiar with these, so I don't know if you need quotes. – glenn jackman May 8 '12 at 19:23#!/bin/bash– SirCharlo May 8 '12 at 20:25