Bugzilla – Bug 327461
Documents folder recreated on login
Last modified: 2012-05-15 17:01:14 UTC
If I rename of remove the ~/Documents folder (containing two empty documents) it is recreated when I login the next time. It shouldn't.
I *think* the main menu is doing this. As a work around, try removing the New Spreadsheet/New Document favorite items in documents tab of the Computer menu.
Yes, removing the favorites fixed it.
I *think* this happens in libslab/bookmark-agent.c:create_doc_item(), but I'm not 100% sure.
Created attachment 188614 [details] Patch to remove this behavior Here's a patch that removes this behavior all together. I can see no reason why it should be in m-m at all.
gnome-main-menu really shouldn't do that. Still happening in 11.0, IIRC (last time I used the main menu). Patch review, anyone? :-)
gnome-main-menu hardcoded Documents in places.xbel.
Created attachment 218926 [details] places.xbel that I used in my slab rpm for fedora This places.xbel may hardcode polish translation, but it removed hardcoded ~/Documents and uses same elements layout as GNOME's default menu applet.
*** Bug 399992 has been marked as a duplicate of this bug. ***
*** Bug 388604 has been marked as a duplicate of this bug. ***
*** Bug 419187 has been marked as a duplicate of this bug. ***
subscribing. We use the 'Documents' directory to map to NCP shared document folders. We used to use 'My Documents', but this confused users because they had two document folders. It'd be really nice if that patch still applied to main-menu now, that it'd be patched and fixed. Autocreation of documents directory should be a gconf attribute, not hardcoded.
Thanks to Captain Magnus we figured out how to script the removal of these files from 'favorites'. Create the file ~/.local/share/gnome-main-menu/documents.xbel Put the following: <?xml version="1.0" encoding="UTF-8"?> <xbel version="1.0" xmlns:bookmark="http://www.freedesktop.org/standards/desktop-bookmarks" xmlns:mime="http://www.freedesktop.org/standards/shared-mime-info" ></xbel> Login, logout. or restart m-m and they should go away as favorites.
This bug is still present in SLED 11 (and I would imagine OpenSUSE 11.1 as well).
Another side effect is the fact that the Documents folder still exists on the slab under Places. That can be removed by removing the following from the /usr/share/gnome-main-menu/places.xbel: <bookmark href="DOCUMENTS" added="2007-01-25T23:17:19Z" modified="2007-01-25T23:17:19Z" visited="2007-01-25T23:17:19Z"> <info> <metadata owner="http://freedesktop.org"> <mime:mime-type type="inode/directory"/> <bookmark:groups> <bookmark:group>rank-1</bookmark:group> </bookmark:groups> <bookmark:applications> <bookmark:application name="nautilus" exec="nautilus --browser %u" timestamp="1169767039" count="1"/> </bookmark:applications> </metadata> </info> </bookmark>
Sorry for the spam. I'm mass-closing gnome-main-menu/slab bugs: gnome-main-menu has gone unmaintained upstream because it's not usable in GNOME 3, and is not shipped since 12.1. I don't expect any maintenance updates for it in 11.4 either.