mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
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.