GNOME Bugzilla – Bug 662256
Folder appears twice in "Places"
Last modified: 2012-09-05 14:08:12 UTC
Created attachment 199493 [details] Desktop displayed twice If "Desktop" and "Download" folders are set to the same path, Nautilus will display this folder twice in the "Computer" section on the sidebar. To reproduce the bug: 1) Open "~/.config/user-dirs.dirs" and set the same path for "Desktop" and "Download": XDG_DESKTOP_DIR="$HOME/Bureau" XDG_DOWNLOAD_DIR="$HOME/Bureau" 2) Kill Nautilus and open it again. 3) Make sure the sidebar and "Places" are displayed on "Display > Sidebar". Actual result: "Bureau" is displayed twice on the "Computer" section. See the attached screenshot. Expected result: see only one link to "Bureau". More information: if we comment the "Download" folder on "~/.config/user-dirs.dirs": XDG_DESKTOP_DIR="$HOME/Bureau" #XDG_DOWNLOAD_DIR="$HOME/Bureau" then kill Nautilus and open it again, only one link to "Bureau" is displayed. My config: - Nautilus 3.2.0 - Ubuntu 11.10 - locale: fr_CA.UTF-8
Previously reported on https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/838290
Confirming on 3.3.1.1 from git. Updating version and status accordingly. If two or more XDG dirs alias the same directory (but I have to argue that this is quite a weird setup), update_places () doesn't keep track of the duplicates.
Created attachment 223490 [details] [review] Don't add duplicate xdg dirs to the places sidebar
Review of attachment 223490 [details] [review]: Makes sense