After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 305748 - .directory file causes weird errors
.directory file causes weird errors
Status: RESOLVED FIXED
Product: gnome-menus
Classification: Core
Component: libgnome-menu
2.11.x
Other Linux
: Normal major
: ---
Assigned To: gnome-menus dummy account
gnome-menus dummy account
Depends on:
Blocks:
 
 
Reported: 2005-05-28 14:48 UTC by Travis Watkins
Modified: 2005-06-28 08:59 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Travis Watkins 2005-05-28 14:48:33 UTC
Distribution/Version: Ubuntu

1. Create the file ~/.local/share/desktop-directories/.directory
2. Put this in it:
[Desktop Entry]
Name=Foo
Type=Directory

At best this causes the System->Preferences menu to use this info and at worst
makes it so all of your menus come up blank. This file should be either
completely ignored or only used where a menu references it with
<Directory>.directory</Directory> (they'd have to be nuts, but hey).
Comment 1 Mark McLoughlin 2005-06-28 08:59:21 UTC
Should be fixed on HEAD and gnome-2-10 now:

2005-06-28  Mark McLoughlin  <mark@skynet.ie>

        Fix for bug #305748 - only include ".directory" in
        a <LegacyDir> if it actually exists.

        * libmenu/gmenu-tree.c:
        (is_dot_directory),
        (add_menu_for_legacy_dir): only add a <Directory>.directory</Directory>
        if the file exists.
        (process_layout): expand debug spew.