![]() |
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! |
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 |
Re: what is the x terminal command that opens an application?
Quote:
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? |
Re: what is the x terminal command that opens an application?
Quote:
The first . means 'current working directory'. |
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. |
Re: what is the x terminal command that opens an application?
Quote:
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 |
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 :) |
Re: what is the x terminal command that opens an application?
Quote:
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 |
Re: what is the x terminal command that opens an application?
Quote:
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? |
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. |
Re: what is the x terminal command that opens an application?
There isn't one single answer, for each program you need to find what the executable file is called and where it is located (this second part is not always necessary, some executables are placed in specific folders that the system is set to look into from anywhere so you don't need to specify the folder)
|
Re: what is the x terminal command that opens an application?
Quote:
And with find, you may want to add wildcards, like: Code:
find / -name '*leafpad*' Quote:
Code:
nohup ./some-text-editor myfile.txt & |
Re: what is the x terminal command that opens an application?
Quote:
thanks Tiago |
Re: what is the x terminal command that opens an application?
Check the contents of the shortcut files, they got .desktop extensions, i forgot where they are located, but should be easy to find on the forum or the wiki.
|
Re: what is the x terminal command that opens an application?
Programs reside under various areas and usually is controlled by the package manager which is probably equivalent to windows' add/remove programs.
The default package manager for maemo 5 (fremantle) is dpkg and its command line based only. Unfortunately there's no easy way to go about finding out the correct name of the executable (and without using find which just thrashes I/O) what you could do is something like: Code:
dpkg -l foo Code:
dpkg -l| grep foo Code:
dpkg -L foobar Code:
for i in `dpkg -L foobar`; do file $i; done |
Re: what is the x terminal command that opens an application?
the .desktop files are in
/usr/share/applications/hildon/ Code:
ls /usr/share/applications/hildon/ Code:
ls /usr/share/applications/hildon | grep paper Code:
cat /usr/share/applications/hildon/papertoss.desktop and there is the command you use. Note that if the command points to something in /usr/bin you can just start that app with the last word in the command. For example the calendar.desktop file points to /usr/bin/Calendar so just typing Calendar from your home dir would start the calendar app. When I want to launch an app from command line I usually try with just typing the beginning of the app name first and pressing tab to see if that command exists. Before going trough the trouble of looking at .desktop files. |
Re: what is the x terminal command that opens an application?
Quote:
http://talk.maemo.org/showpost.php?p=857534&postcount=2 you can narrow the list by [ first letter of app ] then double tab |
Re: what is the x terminal command that opens an application?
...and don't forget 'apropos' and 'locate' as well (which are not installed by default).
|
Re: what is the x terminal command that opens an application?
@tuxsavvy
thanksss a lot ...these comands helped me a lot...I didn't know them before.. thanks tuxsavvy!! |
Re: what is the x terminal command that opens an application?
@mece
Superb information.... these commands worked with me and helped me open several applications from the x terminal ....yet sometimes it gives me :not found....but that's not a big deal... mece when I have and application that is written with 2 or more words.. for example "pocket calc" ---(notice that there is a space between the 2 words).... then in this case would the command be ls /usr/share/applications/hildon | grep pocket calc or ls /usr/share/applications/hildon | grep pocketcalc i.e written in one word what command would I enter in this case the 1st or the 2nd? |
Re: what is the x terminal command that opens an application?
also some applications in order to be run with maemo graphics (instead of like on your pc) must be run with run-standalone.sh
i.e. run-standalone.sh anyQTapp finally there are the python apps which sometimes need python myPythonApp to run |
Re: what is the x terminal command that opens an application?
[QUOTE=qwazix;1103686]also some applications in order to be run with maemo graphics (instead of like on your pc) must be run with run-standalone.sh
i.e. run-standalone.sh anyQTapp finally there are the python apps which sometimes need python myPythonApp to run[/QUOTE] aha..the name of the application is "mypythonapp" ? maybe I should install it... because many python applications wonn't run when I click on their desktop icon..right? or is there another problem? |
Re: what is the x terminal command that opens an application?
No, "myPythonApp" is a placeholder for the python program you wanna run.
Btw, it's grep not gret |
Re: what is the x terminal command that opens an application?
Quote:
but do you have any idea why are some pythone games not running when I click on their desktop icon?? they used to work normally befor but now they only run by a command from the x terminal and this is really bothering me .... have any idea why is this happening? |
All times are GMT. The time now is 12:07. |
vBulletin® Version 3.8.8