Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 have a pure Lubuntu 12.10 installation. While looking at some .desktop files in /usr/share/applications I see TargetEnvironment=Unity.
One example is in the .desktop file for Google Chrome:

[NewWindow Shortcut Group]
Name=New Window

[NewIncognito Shortcut Group]
Name=New Incognito Window
Exec=/opt/google/chrome/google-chrome --incognito

Another example is the .desktop file for Inkscape:

[Drawing Shortcut Group]
Name=New Drawing

To find out what that means, I looked at Desktop Entry Specification - standards and at UnityLaunchersAndDesktopFiles. But neither mentions TargetEnvironment. Hence my question.

share|improve this question
up vote 4 down vote accepted

TargetEnvironment makes the Shortcut Group (i.e. quicklist item) open only in Unity environments. You could also use the OnlyShowIn=Unity keyword.

Here's an old Launcher tutorial that mentions it.

As of here TargetEnvironment is deprecated.

share|improve this answer
Thank you! That nailed it. – user25656 Dec 27 '12 at 0:57

Your Answer


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