← 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/

 

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 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:
  New
Status in “mediascanner2” package in Ubuntu:
  Confirmed
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