startup in specific desktops?

rikona rikona at
Fri Feb 3 02:23:33 UTC 2017

Hello Nils,

Thursday, February 2, 2017, 11:18:20 AM, Nils wrote:

> rikona wrote:
>> I have several pgms I almost always use, set up in 4 desktops. How can
>> I get these to startup in the desktops I want then to be in?

> For KDE there is the program kstart (from the package kde-runtime), but
> I don't know if it would work for Unity. You could try if it works: The
> command

> kstart --desktop 2 firefox

> in a terminal should start firefox on desktop 2 even if you are 
> currently on another desktop. If you want to use it in a script to start
> several applications, you may need a sleep command after each kstart 
> command. Try "kstart --help" to get a list of other options.

Thanks for the info! I'm assuming there is no way to do it in Unity
since I got no replies like that. I'm VERY nervous about trying it -
I've had a LOT of problems that seem to be caused by mixing pgms from
different desktops. I would think that kstart interacts directly with
the KDE desktop, and who knows what it might do to Unity. :-)

Plan B might be to run a script after I log on. Two questions: 1. If I
am on a particular desktop and run a script in that desktop, would a
pgm started by that script end up on that desktop? 2. Can I switch
desktops in a script? Is this a potential alternative?



More information about the ubuntu-users mailing list