maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   what is the x terminal command that opens an application? (https://talk.maemo.org/showthread.php?t=78505)

common 2011-10-04 18:36

what is the x terminal command that opens an application?
 
Hey guys...

Does anybody know what command should I enter to the x terminal in order to directly open an application? because some applications only open by a command from the x terminal...

thanks!

JohnLF 2011-10-04 23:42

Re: what is the x terminal command that opens an application?
 
I normally use ./application, so e.g. leafpad would be ./leafpad

This assumes you are in the same folder the executable app is in

common 2011-10-05 00:02

Re: what is the x terminal command that opens an application?
 
Quote:

Originally Posted by JohnLF (Post 1102913)
I normally use ./application, so e.g. leafpad would be ./leafpad

This assumes you are in the same folder the executable app is in

Thanks JohnLF

I tried to do so but didn't work. For instance, gboggle...I typed ./gboggle but the x terminal gave me : ./gboggle : not found

have an idea?

shallimus 2011-10-05 00:04

Re: what is the x terminal command that opens an application?
 
Quote:

Originally Posted by common (Post 1102919)
Thanks JohnLF

I tried to do so but didn't work. For instance, gboggle...I typed ./gboggle but the x terminal gave me : ./gboggle : not found

have an idea?

This assumes that you are in the same directory as the gboggle script/executable.

The first . means 'current working directory'.

demolition 2011-10-05 00:07

Re: what is the x terminal command that opens an application?
 
I can't get leafpad to start like that, without setting up /usr/bin or something.

If you just enter the name of the software you want to launch that does it for me. If you want to open a file with a programme then this can be quite good, e.g. "leafpad file.txt" However, some programmes are launched with names that aren't the same as their name in the application menu e.g. to open a new terminal window type "osso-xterm".
Also, be careful about shutting the terminal you used to initiate the launch because you'll close both at once - unless that's what you want. Not sure if you can spawn the new programme so it's uneffected by whatever goes on in the terminal.

common 2011-10-05 00:12

Re: what is the x terminal command that opens an application?
 
Quote:

Originally Posted by shallimus (Post 1102921)
This assumes that you are in the same directory as the gboggle script/executable.

The first . means 'current working directory'.

ok.. but what I need is an x terminal command that runs an application directly..
for instance paperthrow is not opening when I click on it's icon..so I need a command in the x terminal so I could run it from the x terminal.

have any idea about the command that I should enter?

thanks shallimus

JohnLF 2011-10-05 00:20

Re: what is the x terminal command that opens an application?
 
/path/to/paperthrow

Not sure where it is? Try which paperthrow or if all else fails

find / -name paperthrow -print

Probably not the best way, but I've been doing that for 25 years and it works for me :)

Captwheeto 2011-10-05 00:34

Re: what is the x terminal command that opens an application?
 
Quote:

Originally Posted by demolition (Post 1102923)
I can't get leafpad to start like that, without setting up /usr/bin or something.

If you just enter the name of the software you want to launch that does it for me. If you want to open a file with a programme then this can be quite good, e.g. "leafpad file.txt" However, some programmes are launched with names that aren't the same as their name in the application menu e.g. to open a new terminal window type "osso-xterm".
Also, be careful about shutting the terminal you used to initiate the launch because you'll close both at once - unless that's what you want. Not sure if you can spawn the new programme so it's uneffected by whatever goes on in the terminal.

this is what `disown` is for. If you run a command like "firefox & disown" it won't close firefox with the parent terminal. Or mid process you can hit ctrl Z and then type disown.

Op, if you just run the command, as long as it is in your path it will execute. If you type 'top' it will just run

common 2011-10-05 00:41

Re: what is the x terminal command that opens an application?
 
Quote:

Originally Posted by JohnLF (Post 1102930)
/path/to/paperthrow

Not sure where it is? Try which paperthrow or if all else fails

find / -name paperthrow -print

Probably not the best way, but I've been doing that for 25 years and it works for me :)

btw it is "paper toss" and not paperthrow..that's ma mistake:)

ok when I entered which paper toss or find /-name paper toss -print
the x terminal gave me /usr/bin/paper toss
but still the application didn't open or run..
any idea?

demolition 2011-10-05 00:51

Re: what is the x terminal command that opens an application?
 
For all xterm commands press Ctrl + Tab twice.

There isn't room for the whole list and I haven't worked out how to pipe this list to a file because you're not actually typing a command. Anybody know?

Edit: @ CaptWheeto - Thanks very handy info.


All times are GMT. The time now is 10:34.

vBulletin® Version 3.8.8