Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
Exec=/opt/google/chrome/google-chrome
TargetEnvironment=Unity

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

Another example is the .desktop file for Inkscape:

[Drawing Shortcut Group]
Name=New Drawing
Exec=inkscape
TargetEnvironment=Unity

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

share|improve this question
add comment

1 Answer

up vote 3 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
add comment

Your Answer

 
discard

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