maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Start a Shellscript from the desktop? (https://talk.maemo.org/showthread.php?t=48038)

achiral 2010-03-22 19:22

Start a Shellscript from the desktop?
 
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.

TNiga 2010-03-22 19:26

Re: Start a Shellscript from the desktop?
 
Should be /bin/sh. And should probably run with just /home/user/myscript.sh if it is executable.

rooted 2010-03-22 19:27

Re: Start a Shellscript from the desktop?
 
Close...

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

achiral 2010-03-22 19:32

Re: Start a Shellscript from the desktop?
 
Quote:

Originally Posted by TNiga (Post 577680)
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

achiral 2010-03-22 19:37

Re: Start a Shellscript from the desktop?
 
Quote:

Originally Posted by rooted (Post 577682)
Close...

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


Thanks. Thats it.


All times are GMT. The time now is 11:58.

vBulletin® Version 3.8.8