From 838efe25ec3a625768ec779ce213538801d54f4f Mon Sep 17 00:00:00 2001 From: Waldo Bastian Date: Tue, 21 Mar 2006 17:41:49 +0000 Subject: Specify correct Type= for .desktop and .directory files Provide guidance * Specify correct Type= for .desktop and .directory files * Provide guidance to third party application developers on installation directories --- menu/menu-spec.xml | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) (limited to 'menu') diff --git a/menu/menu-spec.xml b/menu/menu-spec.xml index 1742485..3c37c8d 100644 --- a/menu/menu-spec.xml +++ b/menu/menu-spec.xml @@ -1,6 +1,6 @@ + ]> @@ -8,7 +8,7 @@ Desktop Menu Specification Version &version; - 15 March 2005 + 21 March 2006 Waldo @@ -1937,6 +1937,27 @@ entries: Categories, + + If an application is intended to be installed by root on a system wide + basis then /usr/share should be used as value for + datadir and /etc/xdg should be used as value + for sysconfdir. + In case the /usr/share hierarchy is not writable it is recommended to + use /usr/local/share as value for datadir + instead. + + + If an application is intended to be installed by an unprivileged user + for exclusive use by that user only then + $XDG_DATA_HOME should be used as value + for datadir and + $XDG_CONFIG_HOME should be used as value + for sysconfdir. + If $XDG_DATA_HOME is not set, the default value of + $HOME/.local/share should be used for it. + If $XDG_CONFIG_HOME is not set, the default value of + $HOME/.config should be used for it. + Also, at least for a good long while, installing a directory hierarchy to the old GNOME/KDE specific locations such as /usr/share/applnk and @@ -2014,8 +2035,8 @@ entries: Categories, A desktop entry is a file with a name ending in the ".desktop" extension which conforms to the desktop - entry specification. It describes a menu item, including - a name, an icon, and what to do when the item is selected. + entry specification with Type=Application. + It describes a menu item, including a name, an icon, and what to do when the item is selected. Desktop entries are also known as ".desktop files." @@ -2044,8 +2065,8 @@ entries: Categories, A directory entry is a file with a name ending in the ".directory" extension which conforms to the desktop - entry specification. It describes gives a localized name and - an icon for a submenu. + entry specification with Type=Directory. + It provides a localized name and an icon for a submenu. Directory entries are also known as ".directory files." -- cgit v1.2.3-54-g00ecf