PDA

View Full Version : [other] How to open an application in a specific desktop using terminal



mahan_h
January 16th, 2009, 08:42 AM
Hi Everybody.
does any body know hoe to open a X application such as firefox, gedit and so on in a certain desktop using shell command in terminal?

Thanx alot.

cloudstrifejr1
January 16th, 2009, 08:52 AM
Hi Everybody.
does any body know hoe to open a X application such as firefox, gedit and so on in a certain desktop using shell command in terminal?

Thanx alot.

I'm fairly new to Ubuntu also. Is it something like this.
IN Terminal:

open /path/to/some.app

I could be totally off. If I find something else, I will post it :)

howefield
January 16th, 2009, 09:06 AM
If you run compiz, you can use the Place Windows plugin to predetermine the workspace an application will launch on, thereafter whether you launch via the menu or terminal it will launch on your desired workspace.

(you would add a rule in the Fixed Window Placement tab > Windows with fixed viewport)

3rdalbum
January 16th, 2009, 10:15 AM
KDE4 and Kwin can do this too - open the program, right-click on its title-bar, go "Advanced > Special Application Settings". Under "Geometry", choose "Force" and whatever desktop you want the program to open on.

jure1873
January 17th, 2009, 11:15 AM
for xterm it's something like this
xterm -geometry +1200+1200

The desktops are aligned like a grid. So if your desktop is 1024x1024 that would put it onto the 4th.
but I don't know if firefox has these geometry switches.