The attached patch specifies that a system wide
installation should compute datadir by using the
first writable element of $XDG_DATA_DIRS
(or sysconfdir from the first writeable element
of $XDG_CONFIG_DIRS), as previously discussed.
The spec is clearly lacking, so I request that this
either be applied, or a clear alternate be suggested.
Cheers,
Jeremy
Index: menu-spec.xml
===================================================================
RCS file: /cvs/menus/menu-spec/menu-spec.xml,v
retrieving revision 1.27
diff -u -r1.27 menu-spec.xml
--- menu-spec.xml 13 Apr 2005 13:32:12 -0000 1.27
+++ menu-spec.xml 11 Mar 2006 05:43:25 -0000
@@ -1938,6 +1938,14 @@
</itemizedlist>
</para>
<para>
+ To compute <replaceable>datadir</replaceable>, <varname>$XDG_DATA_HOME</varname> should be used
+ when the installation is intended to be used soley by the current user.
+ When the menu is to be installed system wide, a software author should use the first
+ directory in <varname>$XDG_DATA_DIRS</varname> that both exists and is writeable. If none exist, then
+ the first directory in <varname>$XDG_DATA_DIRS</varname> should be used. The <replaceable>sysconfdir</replaceable>
+ should be similarly computed from <varname>$XDG_CONFIG_HOME</varname> and <varname>$XDG_CONFIG_DIRS</varname>.
+ </para>
+ <para>
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
/usr/share/gnome/apps should work. There are two ways to support
_______________________________________________
xdg mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/xdg