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 685777 - File Chooser doesn't show xdg-user-dirs anymore once their paths have been modified
File Chooser doesn't show xdg-user-dirs anymore once their paths have been mo...
Status: RESOLVED NOTGNOME
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
Depends on:
Blocks:
 
 
Reported: 2012-10-09 00:16 UTC by antistress
Modified: 2013-04-14 13:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description antistress 2012-10-09 00:16:07 UTC
Hi,

I've just modified the paths for xdg-user-dirs on my Debian Sid/GNOME
3.4 system [1].

Nautilus have taken them into account whereas GTK File Chooser didn't

xdg-user-dirs are not shown in GTK File Chooser once they have been modified.


Thanks

[1] gedit ~/.config/user-dirs.dirs
xdg-user-dirs-update && xdg-user-dirs-gtk-update.
Comment 1 antistress 2012-10-09 00:22:15 UTC
I've manually edited ~/.gtk-bookmarks and everything works fine now.

I think that ~/.gtk-bookmarks should be automatically updated by the system
Comment 2 antistress 2012-10-09 00:26:22 UTC
This bug may have the same cause that Bug 599969

(In this bug i manually changed ~/.config/user-dirs.dirs and it wasn't take into account

In the other bug i manually changed my fstab to use an entire partition as XDG_VIDEOS_DIR  and it wasn't take into account either)
Comment 3 Matthias Clasen 2013-01-21 02:53:07 UTC
Probably https://bugs.freedesktop.org/show_bug.cgi?id=59527
Comment 4 antistress 2013-04-14 13:38:32 UTC
Okay, i was able to reproduce the problem.

My father is running Debian Wheezy 7.0 (which is still under developpment ans is based upon GNOME 3.4)

He has deleted by mystake its XDG Documents folder
I've restored it from trash and checked ~/.config/user-dirs.dirs by the Documents folder was still missing from GTK+ FileChooser (and therefore from "Places Menu" extension [1])
I had to manually correct ~/.gtk-bookmarks

Here are some thoughts : 
1°) simple user should not be able to delete XDG folders
2°) but if user is able to delete XDG folders, restoring them from trash should automatic set ~/.config/user-dirs.dirs & ~/.gtk-bookmarks for restoration being take into account by the system

Thanks

[1] https://extensions.gnome.org/extension/8/places-status-indicator/