什么是TargetEnvironment = Unity?


8

我有一个纯粹的Lubuntu 12.10安装。在/ usr / share / applications中查看一些.desktop文件时,我看到了TargetEnvironment=Unity
Google Chrome的.desktop文件中有一个示例:

[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

另一个示例是Inkscape的.desktop文件:

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

为了弄清楚这意味着什么,我查看了Desktop Entry Specification-freedesktop.org标准以及UnityLaunchersAndDesktopFiles。但是都没有提及TargetEnvironment。因此,我的问题。

Answers:


6

TargetEnvironment使快捷方式组(即快速列表项)仅在Unity环境中打开。您也可以使用OnlyShowIn=Unity关键字。

是旧的Launcher教程中提到的内容。

截至此处 TargetEnvironment已弃用。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.