Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed (aware of the risks) software from the Elementary Team PPAs and I set up a Pantheon Shell session, which is based on Gnome. I would like to have Plank (a fork of Docky) to run at startup for this session, but not when I'm logging into Unity or the Classic Gnome session. Adding Plank to the Startup Applications list makes it run in every Gnome-based session. Thanks for your help!

share|improve this question
just a suggestion but would a bash script to check for the existence of unity and if not run plank suffice? I'm not posting this as an answer as I don't know how to check for a specific process by name in bash. But you get the idea – Allan Jul 17 '11 at 22:58

Startup applications are defined by .desktop files that live in ~/.local/share/autostart, according to the Desktop Application Autostart Specification.

They optional setting to limit them to one or more desktop environments, e.g.


Alternatively you can use


to exclude this app from the listed desktop environments.

Only one of these keys, either OnlyShowIn or NotShowIn, may appear in a single .desktop file. (That was a direct quote from the spec.)

Unfortunately, I'm not sure what you're doing qualifies as a separate desktop environment...

share|improve this answer
Well, GNOME and Unity are separate environments; but I suspect both Classic GNOME and Plank would show up as "GNOME". – Marius Gedminas Dec 12 '11 at 20:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.