[Bug 1754356] [NEW] xdg-user-dirs-update does not take care of $HOME

Launchpad Bug Tracker 1754356 at bugs.launchpad.net
Thu Mar 8 16:20:09 UTC 2018


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

[ 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 "/tmp/temp-home/sub/folder/of/it/Downloads"

Should modify /tmp/temp-home/.config/user-dirs.dirs so that it contains:
  XDG_DOWNLOADS_DIR="$HOME/sub/folder/of/it/Downloads"

[ Regression potential ]

Xdg folders could be generated in wrong locations.

** Affects: xdg-user-dirs (Ubuntu)
     Importance: High
     Assignee: Marco Trevisan (TreviƱo) (3v1n0)
         Status: In Progress


** Tags: patch
-- 
xdg-user-dirs-update does not take care of $HOME
https://bugs.launchpad.net/bugs/1754356
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list