XDG_DESKTOP_DIR reverts to $HOME if ~/Desktop not available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdg-user-dirs (Ubuntu) |
New
|
Low
|
Unassigned |
Bug Description
My ~/Desktop directory is a soft link (ln -s) to a CIFS mounted share. Normally XDG_DESKTOP_DIR in ~/.config/user-dirs is set to "$HOME/Desktop". If I login when my Samba server is not available then XDG_DESKTOP_DIR reverts to $HOME. If my server becomes available and I log out and then log back in then XDG_DESKTOP_DIR is still set to $HOME and doesn't revert back to ~/Desktop. I then have to run...
xdg-user-
....and re-login.
I don't have "use $HOME as your desktop directory" set anywhere. I would prefer if it did revert to $HOME then it would revert back to what it originally was, in this case ~/Desktop. If not then I think it makes more sense that if ~/Desktop isn't available then it doesn't revert to $HOME at all and just doesn't show any files on the desktop. At least then if my desktop directory does become available all I have to do is refresh the desktop or run "nautilus ~/Desktop" to reload the desktop.
BTW, this is on Hardy.