Ubuntu – How to make program autostart only in GNOME

autostartgnomekde

I use both GNOME and KDE SC. In GNOME, I use Docky but I do not use it with KDE. So, I would like Docky to start up only when I login into GNOME not KDE. In KDE, there is an option to make a program autostart only in KDE. But I cannot find any such option in GNOME.

How can I do this?

Thanks in advance.

Best Answer

You can edit the startup object in ~/.config/autostart and add this to the end:

OnlyShowIn=GNOME

It's a poorly named option, but it will cause KDE not to start the application.

Related Question