Files
James Henstridge 84dcecbe36 data: update XDG_DATA_DIRS via the systemd environment.d mechanism too
As discussed in https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1640514

shells such as zsh do not default to processing /etc/profile.d on
session setup.  PR #5390 used the /etc/environment.d mechansim to make
sure $PATH was updated in these cases.  However we also need to do the
same for $XDG_DATA_DIRS in order for snap .desktop files to be visible
to the desktop session.

The default value for XDG_DATA_DIRS comes from the XDG Base Directory
specification.
2019-05-02 18:58:17 +08:00
..