You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Friday, March 2nd 2007, 4:50pm

autostart an application on a specific desktop

Hello!
I am using multiple KDE desktops and have setup three applications (firefox, Kmail and shell) to start automatically when I log in.

I would like to specify at which desktop each application should be run, e.g. firefox on Desktop 1, Kmail on Desktop 2, etc., so that I do not have manually to arrange them after startup (that is what Iam currently doing ;(. Is this possible to do? I mean is there some switch that I can specify in autostart file (like --desktop 1' or similar ), so that the application starts each time on the specified desktop?

Thank you in advance for your help.

Ema

2

Friday, March 2nd 2007, 7:06pm

you can do that with kstart

See kstart --help for the syntaxis
Help mee om KDE 3.5.5 in het Nederlands te vertalen

bram85

Professional

Posts: 948

Location: Eindhoven

Occupation: Software Engineer

  • Send private message

3

Saturday, March 3rd 2007, 7:58pm

RE: autostart an application on a specific desktop

Maybe better would be to define Window rules: right click a title bar, Configure Window Behavior -> Window Specific Settings. There you can assign certain properties to certain windows, like their initial desktop number.
Bram Schoenmakers
KDE Netherlands (www.kde.nl)

4

Monday, March 5th 2007, 8:13am

RE: autostart an application on a specific desktop

Hello,
I have just tried out kstart and it worked :)

Just for the future reference:

To autostart a command on all desktops
kstart --desktop alldesktops command

To autostart a command on a single desktop (e.g. 1)
kstart --desktop 1 command

Thanks everybody for your help!
Ema

catworld

Beginner

Posts: 9

Location: Elmira, New York

Occupation: husband

  • Send private message

5

Tuesday, March 6th 2007, 7:16pm

RE: autostart an application on a specific desktop

Quoted

Originally posted by ema_ba
Hello,
I have just tried out kstart and it worked :)

Just for the future reference:

To autostart a command on all desktops
kstart --desktop alldesktops command

To autostart a command on a single desktop (e.g. 1)
kstart --desktop 1 command

Thanks everybody for your help!
Ema


Where do you put these lines to have the startups automated? I put a link to scripts I wrote up in /.kde/autostart and it partially worked. The script to start firefox on desktop 6 worked, but the focus changed to it (and that desktop) even though I did not include --activate. Following that, the script to open thunderbird on desktop 2 opened t-bird, but on desktop 6 over the top of firefox. (also no --activate option)

Where does one add automated kstart commands normally? The "advanced window behavior" page of the manual only talked about command line syntax.
root@brain# cat -A world | grep "42"

6

Sunday, March 11th 2007, 8:26am

RE: autostart an application on a specific desktop

Hi,
I have put in the commands in my 'autostart' file (the same you are
using) and I get all the windows open on specified desktops.
I do not use option --activate or any other option apart --desktop . Unfortunately, I cannot advise much more as I am newby with KDE myself. Anybody else knows more?
Good luck,
Ema