XDG menu standard implementation in XFCE.

Brian J. Tarricone bjt23 at cornell.edu
Sat Oct 22 09:26:28 CEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Raul Suarez wrote:
> I hope this is the right mailing list for these
> questions:
> 
> I've been looking through the code and couldn't find
> an answer. I have been looking at the xfdesktop-4.2.2
> source.
> 
> 1. How does xfce decides which xdg root menu to use
> when the <include type="system" style="simple"
> unique="true" /> tag is used? 
> e.g. /etc/xdg/menus/xfce4.menu or
> /etc/xdg/menus/applications.menu
> I've already followed the path
> dmp_popup
>   xfce_desktop_menu_force_regen
>     _generate_menu
>       desktop_menu_file_parse
>         desktop_menu_file_parse
>           desktop_menu_dentry_parse_files
> 
> and the trail goes cold. I cannot find where you get
> the xdg menu file or where you parse it.

It's because the menu doesn't use them.  The menu is not XDG-compliant.
 It uses and attempts to organise .desktop files according to the spec,
but the menu file format is totally different.

> 2. Is there detailed documentation of the xfce menu
> (structure/handling)? 

Nope.

> 3. Does the xfce implementation of XDG supports the
> <Layout> and <DefaultLayout> tags? 
> When I use them the menu does not show as if it the
> file was malformed. The XDG specification indicates
> that if not handled they can be ignored.

Again, no, as it doesn't support the spec in many ways.

If you'd like to use an xfdesktop that has a mostly-conforming menu
system, I'd suggest using xfdesktop-ng (I think that's what it's called)
from the Xfld distribution.

	-brian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDWemk6XyW6VEeAnsRArD/AJ95LjM9gJbZd5KpfsHRmhiAUM+qpQCfRdw+
yH7f4sHqwGKKGzOBXA11fUI=
=YtCi
-----END PGP SIGNATURE-----



More information about the Xfce4-dev mailing list