Active Topics

 


Reply
Thread Tools
Posts: 11 | Thanked: 4 times | Joined on Mar 2010
#1
How can I start a Shell-Script from the Desktop?

I have copied a .desktop file in /usr/share/applications/hildon/
and Changed the Exec line to

Exec=/bin/sh "/home/user/myscript.sh"

/home/user/myscript.sh exists and is executable, and works like expected when started from a shell.

But clicking on the Starter does nothing.

Last edited by achiral; 2010-03-22 at 19:27.
 

The Following User Says Thank You to achiral For This Useful Post:
Posts: 353 | Thanked: 263 times | Joined on Dec 2009 @ Finland
#2
Should be /bin/sh. And should probably run with just /home/user/myscript.sh if it is executable.
__________________
My Maemo5 projects:
mSpede - Speed testing game | Them Bloody Ducks - 2D duck hunting game | Maetronome - A simple metronome app | CuteMPC - MPD client
 
Posts: 156 | Thanked: 90 times | Joined on Jan 2010
#3
Close...

Exec=/usr/bin/osso-xterm '/path/script.sh'
 

The Following 2 Users Say Thank You to rooted For This Useful Post:
Posts: 11 | Thanked: 4 times | Joined on Mar 2010
#4
Originally Posted by TNiga View Post
Should be /bin/sh. And should probably run with just /home/user/myscript.sh if it is executable.
Sorry it is. And I tried to start it directly too.
my script myscript does nothing but running syncevolution.

#!/bin/sh
/usr/bin/syncevolution funambol

the Starter:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=syncfunambol
Icon=vim
Exec=/bin/sh "/home/user/myscript.sh"
Type=Application
 
Posts: 11 | Thanked: 4 times | Joined on Mar 2010
#5
Originally Posted by rooted View Post
Close...

Exec=/usr/bin/osso-xterm '/path/script.sh'

Thanks. Thats it.
 

The Following User Says Thank You to achiral For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 17:33.