maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   Create a simple script or execute file (https://talk.maemo.org/showthread.php?t=25092)

therock_80 2008-11-20 20:21

Create a simple script or execute file
 
I want to run a Wake On Lan file to wake a computer.
But it bothers me everytime i have to go to XTerminal and type:
"
cd MyDocs
~/MyDocs python wol.py
"

Is there a way or create a file so that i just execute it and run instead of typing in Xterm ?

<<N810

lm2 2008-11-20 20:33

Re: Create a simple script or execute file
 
This helped me:

http://www.internettablettalk.com/fo...889#post209889

maacruz 2008-11-20 20:36

Re: Create a simple script or execute file
 
Quote:

Originally Posted by therock_80 (Post 243507)
I want to run a Wake On Lan file to wake a computer.
But it bothers me everytime i have to go to XTerminal and type:
"
cd MyDocs
~/MyDocs python wol.py
"

Is there a way or create a file so that i just execute it and run instead of typing in Xterm ?

<<N810

Create a file in /usr/share/applications/hildon named wol.desktop with this content

Code:

Encoding=UTF-8
Name=WOL
GenericName=Wake On Lan
Exec=osso-xterm 'python ~/MyDocs/wol.py'
Icon=terminal
X-Osso-Type=application/x-executable
X-HildonDesk-ShowInToolbar=true
Type=Application
StartupNotify=true


therock_80 2008-11-21 00:12

Re: Create a simple script or execute file
 
Quote:

Originally Posted by maacruz (Post 243512)
Create a file in /usr/share/applications/hildon named wol.desktop with this content

Code:

Encoding=UTF-8
Name=WOL
GenericName=Wake On Lan
Exec=osso-xterm 'python ~/MyDocs/wol.py'
Icon=terminal
X-Osso-Type=application/x-executable
X-HildonDesk-ShowInToolbar=true
Type=Application
StartupNotify=true



I couldnt locate the file on the desktop.

therock_80 2008-11-21 04:32

Re: Create a simple script or execute file
 
never mind, i found out Personal Menu adding command script
So i just click to execute the command.


All times are GMT. The time now is 16:27.

vBulletin® Version 3.8.8