Creating a script with a desktop shortcut - Raspberry Pi Forums


hi,
created simple sh script runs xbmc , reboots pi.
content of script:

code: select all

pi@raspberrypi ~ $ more run_xbmc.sh #! /bin/bash  sudo /usr/lib/xbmc/xbmc.bin sudo reboot 
then, did chmod 777 , created desktop icon using:
pi@raspberrypi ~/desktop $ ln -s ~/run_xbmc.sh

issue when start xbmc desktop icon, opens message box following message:

text file 'run_xbmc.sh' seems executable script.
want it?

if choose execute work ok.
don't want messagebox appear.

how can tell lxde / rasbian file executable , want run it, without showing message?

thanks!

i'm not sure, easy removing "space" between "shebang" (#!) , interpreter (/bin/bash).


raspberrypi



Comments

Popular posts from this blog

CAN'T INSTALL MAMBELFISH 1.5 FROM DIRECTORY - Joomla! Forum - community, help and support

error: expected initializer before 'void'

CPU load monitoring using GPIO and leds - Raspberry Pi Forums