This bug was fixed in the package xdg-user-dirs - 0.15-2ubuntu6.16.04.1

xdg-user-dirs (0.15-2ubuntu6.16.04.1) xenial; urgency=medium

  * debian/patches/xdg-user-dirs-update-give-priority-to-HOME.patch:
    - use $HOME as preferred before using getpw (LP: #1754356)

 -- Marco Trevisan (Treviño) <>  Fri, 23 Mar 2018
16:16:45 +0000

** Changed in: xdg-user-dirs (Ubuntu Xenial)
       Status: Fix Committed => Fix Released

You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xdg-user-dirs in Ubuntu.

  xdg-user-dirs-update does not take care of $HOME

Status in xdg-user-dirs package in Ubuntu:
  Fix Released
Status in xdg-user-dirs source package in Xenial:
  Fix Released

Bug description:
  [ Impact ]

  When setting an user dir to a folder that is subfolder of $HOME (and
  when $HOME does not match the /etc/passwd defined home for the user),
  the ~/.config/user-dirs.dirs is wrongly generated.

  [ Test case ]

   1) env HOME=/tmp/temp-home xdg-user-dirs-update
   2) find /tmp/temp-home/
   3) should list generated XDG user directories
   4) /tmp/temp-home/.config/user-dirs.dirs should mention them

  Launching something like:
   - env HOME=/tmp/temp-home ./xdg-user-dirs-update --set DOWNLOADS 

  Should modify /tmp/temp-home/.config/user-dirs.dirs so that it contains:

  [ Regression potential ]

  Xdg folders could be generated in wrong locations.

To manage notifications about this bug go to:

Mailing list:
Post to     :
Unsubscribe :
More help   :

Reply via email to