2 Commits

Author SHA1 Message Date
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
Michael Vogt
4813faa9e8 data: add systemd environment configuration
This addresses LP: 1771858 and ensures that /snap/bin is available in
the PATH everywhere. This superseeds #5226 which was using a full
generator but we really just need the simpler environment conf file.
2018-06-25 18:52:37 +02:00