Active Topics

 


Reply
Thread Tools
Posts: 24 | Thanked: 0 times | Joined on Jun 2010
#1
Hi

I'm trying to create a Desktop short cut to run a terminal program on my N900

I've seen the following info quoted below but as a newcomer could someone please throw some light on the actual Exec command I need to include in the text.....The terminal command is:

run-standalone.sh python2.5 filename.py

Thanks in advance


"On the N900, it is possible to run a terminal program like ‘top’ directly from the Desktop/Shortcut. The following example creates a shortcut to launch the system monitior program ‘top’.

1. Use a text-editor like vi or Leafpad to create a file with the following text:

[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Terminal=true
Name=topx
Exec=/usr/bin/osso-xterm top
Icon=
X-Window-Icon=
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
2. Save the file as topx.desktop.

3. As root, copy the file to the ‘/usr/share/applications/hildon/’ directory. This will create an ugly blue application icon in the Application list called ‘topx’"
 
Posts: 24 | Thanked: 0 times | Joined on Jun 2010
#2
Can anyone help please?

Thanks
 
Posts: 53 | Thanked: 3 times | Joined on Dec 2009
#3
Exec=/usr/bin/osso-xterm run-standalone.sh python2.5 filename.py
 
No!No!No!Yes!'s Avatar
Posts: 700 | Thanked: 846 times | Joined on Nov 2009
#4
Have a look to this tutorial for alternative with Queen Beecon Widget
__________________
Have a look at Queen BeeCon Widget (WIKI) Customizable and flexible widget-based multi-instance monitoring, alerting and interactive tool for the N900
Please provide comments and feedback for having QBW supported and enhanced further - (DONATE) - v1.3.3devel / v1.3.3testing / v1.3.3extras
 
zwiik's Avatar
Posts: 41 | Thanked: 14 times | Joined on Jul 2010
#5
it doesnt work for me

Exec=/usr/bin/osso-xterm run-standalone.sh /home/user/tabcgpa

where tabcgpa is my executable
i have done chmod u+x and it runs when i execute "run-standalone.sh /home/user/tabcgpa"

i am doing this cuz i havent being able to create a debian package for my application
CGPA Calculator

Last edited by zwiik; 2010-07-06 at 09:13.
 
Posts: 433 | Thanked: 274 times | Joined on Jan 2010
#6
you could try

Exec=/usr/bin/run-standalone.sh home/user/tabcgpa

if that doesnt work, try enclosing the whole string after the = in double quotes?

this is just a (semi) educated guess BTW
__________________
n900: "with power comes responsibility".

If you buy a niche, highly modifiable smartphone and proceed to mess it up by blindly screwing around, don't just blame the phone, also blame yourelf.
 
zwiik's Avatar
Posts: 41 | Thanked: 14 times | Joined on Jul 2010
#7
Originally Posted by Pigro View Post
you could try

Exec=/usr/bin/run-standalone.sh home/user/tabcgpa

if that doesnt work, try enclosing the whole string after the = in double quotes?

this is just a (semi) educated guess BTW
same as before now...blank window opens and then closes

is it because run-standalone.sh can be executed as root only and nowhere in the code we use sudo gainroot..?
 
Posts: 992 | Thanked: 738 times | Joined on Jun 2010 @ Low Earth Orbit
#8
Originally Posted by zwiik View Post
same as before now...blank window opens and then closes

is it because run-standalone.sh can be executed as root only and nowhere in the code we use sudo gainroot..?
Did you try

Exec=/usr/bin/run-standalone.sh /home/user/tabcgpa

Note the forward slash.
 
zwiik's Avatar
Posts: 41 | Thanked: 14 times | Joined on Jul 2010
#9
Originally Posted by kureyon View Post
Did you try

Exec=/usr/bin/run-standalone.sh /home/user/tabcgpa

Note the forward slash.
actually i had added that earlier..checked again ..still not workin
 
Posts: 42 | Thanked: 16 times | Joined on Jan 2010
#10
Try changing "Terminal=true" to "Terminal=false" if no terminal is needed, also change the name to something else besides topx (that's just in the example) in the file as well as for the filename itself.
Also it should work if you just put "/home/user/tabcgpa" in the Exec command, if the run-standalone.sh is not needed (I don't know what that does though).
 
Reply


 
Forum Jump


All times are GMT. The time now is 02:50.