Active Topics

 



Notices


Reply
Thread Tools
Posts: 36 | Thanked: 4 times | Joined on Oct 2011
#1
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's Avatar
Posts: 551 | Thanked: 507 times | Joined on Feb 2010 @ North West England
#2
I normally use ./application, so e.g. leafpad would be ./leafpad

This assumes you are in the same folder the executable app is in
__________________
My websites: -
http://www.lefebvre.org.uk
http://www.lefebvre.ltd.uk
 

The Following 2 Users Say Thank You to JohnLF For This Useful Post:
Posts: 36 | Thanked: 4 times | Joined on Oct 2011
#3
Originally Posted by JohnLF View Post
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's Avatar
Posts: 568 | Thanked: 969 times | Joined on Dec 2009 @ Toronto
#4
Originally Posted by common View Post
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'.
__________________
tinfoilhat.dll: Trojan horse detected
Sailfish want list: calendar bugfixes, glanceable agenda, Swype or similar
Evolution continues (but we're still pre-Cambrian)

 

The Following User Says Thank You to shallimus For This Useful Post:
Posts: 560 | Thanked: 422 times | Joined on Mar 2011
#5
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.
 

The Following 2 Users Say Thank You to demolition For This Useful Post:
Posts: 36 | Thanked: 4 times | Joined on Oct 2011
#6
Originally Posted by shallimus View Post
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
 

The Following User Says Thank You to common For This Useful Post:
JohnLF's Avatar
Posts: 551 | Thanked: 507 times | Joined on Feb 2010 @ North West England
#7
/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
__________________
My websites: -
http://www.lefebvre.org.uk
http://www.lefebvre.ltd.uk
 

The Following 2 Users Say Thank You to JohnLF For This Useful Post:
Captwheeto's Avatar
Posts: 302 | Thanked: 193 times | Joined on Oct 2008 @ England
#8
Originally Posted by demolition View Post
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
 

The Following 2 Users Say Thank You to Captwheeto For This Useful Post:
Posts: 36 | Thanked: 4 times | Joined on Oct 2011
#9
Originally Posted by JohnLF View Post
/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?
 
Posts: 560 | Thanked: 422 times | Joined on Mar 2011
#10
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.

Last edited by demolition; 2011-10-05 at 00:53.
 
Reply


 
Forum Jump


All times are GMT. The time now is 15:32.