Bug 327461

Summary: Documents folder recreated on login
Product: [openSUSE] openSUSE 11.1 Reporter: Eskil Bylund <eskil>
Component: GNOMEAssignee: Scott Reeves <sreeves>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P4 - Low CC: awafaa, captain.magnus, federico, forgotten_PeJdI8XYP6, forgotten_wbt-beX79k, franz, jack.hodge, kontakt, reinout, vuntz, wolfgang
Version: Final   
Target Milestone: ---   
Hardware: All   
OS: openSUSE 11.1   
Whiteboard: gnomeup-gnome-main-menu gnome-wrong-out-of-the-box
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 341831    
Attachments: Patch to remove this behavior
places.xbel that I used in my slab rpm for fedora

Description Eskil Bylund 2007-09-22 11:09:59 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.
Comment 1 JP Rosevear 2007-09-22 19:31:49 UTC
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.
Comment 2 Eskil Bylund 2007-09-22 20:39:00 UTC
Yes, removing the favorites fixed it.
Comment 4 Federico Mena Quintero 2007-12-17 19:11:56 UTC
I *think* this happens in libslab/bookmark-agent.c:create_doc_item(), but I'm not 100% sure.
Comment 5 Magnus Boman 2007-12-22 21:30:34 UTC
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.
Comment 6 Vincent Untz 2008-05-28 19:08:04 UTC
gnome-main-menu really shouldn't do that. Still happening in 11.0, IIRC (last time I used the main menu). Patch review, anyone? :-)
Comment 7 Jakub Rusinek 2008-05-29 15:26:43 UTC
gnome-main-menu hardcoded Documents in places.xbel.
Comment 8 Jakub Rusinek 2008-05-29 15:28:53 UTC
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.
Comment 9 JP Rosevear 2008-06-17 12:49:29 UTC
*** Bug 399992 has been marked as a duplicate of this bug. ***
Comment 10 Federico Mena Quintero 2008-08-20 20:35:51 UTC
*** Bug 388604 has been marked as a duplicate of this bug. ***
Comment 11 JP Rosevear 2008-09-18 19:51:17 UTC
*** Bug 419187 has been marked as a duplicate of this bug. ***
Comment 12 Forgotten User PeJdI8XYP6 2009-04-07 21:57:05 UTC
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.
Comment 13 Forgotten User PeJdI8XYP6 2009-04-09 22:05:54 UTC
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.
Comment 14 Forgotten User wbt-beX79k 2009-05-27 16:29:47 UTC
This bug is still present in SLED 11 (and I would imagine OpenSUSE 11.1 as well).
Comment 15 Jack Hodge 2009-09-24 15:57:49 UTC
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>
Comment 16 Vincent Untz 2012-05-15 17:01:14 UTC
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.