[Bug 285998] Re: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
** Changed in: mediascanner2 Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-user-dirs in Ubuntu. https://bugs.launchpad.net/bugs/285998 Title: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/ To manage notifications about this bug go to: https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 285998] Re: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
This bug was fixed in the package mediascanner2 - 0.105+15.04.20150122-0ubuntu1 --- mediascanner2 (0.105+15.04.20150122-0ubuntu1) vivid; urgency=low [ Jussi Pakkanen ] * Add blacklist functionality and use it to block music playlists. (LP: #1384295) * Skip scanning of special directories if they point to user home dir. (LP: #285998) -- Ubuntu daily releaseThu, 22 Jan 2015 10:18:10 + ** Changed in: mediascanner2 (Ubuntu) Status: In Progress => Fix Released -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-user-dirs in Ubuntu. https://bugs.launchpad.net/bugs/285998 Title: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/ To manage notifications about this bug go to: https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 285998] Re: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
** Branch linked: lp:ubuntu/vivid-proposed/mediascanner2 -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-user-dirs in Ubuntu. https://bugs.launchpad.net/bugs/285998 Title: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/ To manage notifications about this bug go to: https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 285998] Re: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
** Changed in: mediascanner2 Status: New => In Progress ** Changed in: mediascanner2 (Ubuntu) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-user-dirs in Ubuntu. https://bugs.launchpad.net/bugs/285998 Title: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/ To manage notifications about this bug go to: https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 285998] Re: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
** Branch linked: lp:~jpakkane/mediascanner2/skipspecialhome -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-user-dirs in Ubuntu. https://bugs.launchpad.net/bugs/285998 Title: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/ To manage notifications about this bug go to: https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 285998] Re: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: mediascanner2 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-user-dirs in Ubuntu. https://bugs.launchpad.net/bugs/285998 Title: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/ To manage notifications about this bug go to: https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 285998] Re: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
** Changed in: xdg-user-dirs (Ubuntu) Assignee: (unassigned) => Chad Miller (cmiller) -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-user-dirs in Ubuntu. https://bugs.launchpad.net/bugs/285998 Title: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/ To manage notifications about this bug go to: https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 285998] Re: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
** Description changed: - Tested in Hardy and Intrepid + $ rmdir ~/Videos + ... + $ mkdir ~/Videos - 1) - Delete ~/Templates - Rebooting - Change in ~/.config/user-dirs.dirs to remove the Templates folder as a link for the shortcut (RightClick > Create Document > Template) - 2) - Creating ~/Templates - Rebooting - There is no change in ~/.config/user-dirs.dirs even when ~/Templates it present at login, therefore the Template shortcut no longer works + Hours later, find apps doing crazy things in home directory. - Is this intentional or a bug? + During the elided period between rmdir and mkdir, if the XDG functions + were run, the user's intent is forever lost, and its value is set to the + user's home directory. + + Apps can not rely on XDG functions not to lie about what the user wants. It prefers to say what exists, not now when the app is accessing it, but when the XDG functions ran. It does not provide a file descriptor for an + open_at(2) call. It provides a stale, text name of what used to exist on disk, and often not even what the user wanted. -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-user-dirs in Ubuntu. https://bugs.launchpad.net/bugs/285998 Title: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/ To manage notifications about this bug go to: https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs
[Bug 285998] Re: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/
An example of the gross failure of this is "rmdir ~/Videos" . XDG tools will then notice the dir not missing, and change the definition to "$HOME/" . Thereafter, media scanner will treat home as the Videos dir, and spend days of CPU scanning ~/sourcecode/projectsfoo/tests/10TB-of-video- files/* . xdg-user-dirs should be an expression of the user's preferences, not an assertion of what was valid on the disk at some point in the past. It does not matter whether the named variable's target existed on disk the last time it looked. Existence of the target is a function of time, the user's whims, and language. Apps using a XDG name at the user's request should handle the nonexistence by prompting the user to confirm intent, or merely create what it was asked to use. Redefining the variable without any ability to discover or undo it is evil. Lying about the user's preference is wrong. Assuming apps can never mkdir() what they are asked to use is wrong. In the mean time, apps should probably interpret XDG variables that are "$HOME/" (with significan trailing slash) as previously clobbered from this bug, invalid, and then prompt the user to re-set it to default or pick a location. If users pick their home, do not include the trailing slash in the value, and set it to "$HOME" instead. The trailing slash is a good semaphore because any app is already expecting the returned value not to end in a slash. Most values from the XDG tool are like "/home/alice/Music", no trailing slash, so they append slash and the rest of their relative filename. ** Also affects: mediascanner2 (Ubuntu) Importance: Undecided Status: New ** Also affects: mediascanner2 Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to xdg-user-dirs in Ubuntu. https://bugs.launchpad.net/bugs/285998 Title: mv or rm of any XDG user dir causes its definition to change to wrong, oversimple $HOME/ To manage notifications about this bug go to: https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs