← Back to team overview

desktop-packages team mailing list archive

[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 release <ps-jenkins@xxxxxxxxxxxxxxxxxxx>   Thu, 22 Jan 2015 10:18:10 +0000

** Changed in: mediascanner2 (Ubuntu)
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Desktop
Packages, 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/

Status in Media Scanner v2:
  In Progress
Status in mediascanner2 package in Ubuntu:
  Fix Released
Status in xdg-user-dirs package in Ubuntu:
  Confirmed

Bug description:
  $ rmdir ~/Videos
  ...
  $ mkdir ~/Videos

  
  Hours later, find apps doing crazy things in home directory.

  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mediascanner2/+bug/285998/+subscriptions