3 Commits

Author SHA1 Message Date
Maciej Borzecki
73f39f4996 data/env: provide profile setup for fish shell
Profile profile setup for fish shell, which does not load /etc/profile.d.

Fixes: https://bugs.launchpad.net/snapd/+bug/1951145

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-11-17 12:08:33 +01:00
John R. Lenton
67b6ba2483 Fix 14.04 (thank you spread), address review feedback (thank you mvo)
Also do some work to keep the diffs between 14.04 and 16.04 small.
2017-08-29 18:32:47 +01:00
John R. Lenton
2f55619677 packaging: unify PATH and XDG_DATA_DIRS handling cross-distro
All distributions need to add the snappy bin directory (/snap/bin or
/var/lib/snapd/snap/bin, depending) to the user's PATH, and to add
/var/lib/snapd/desktop to XDG_DATA_DIRS (which might be unset, meaning
it needs adding to the defaults).

Up to now all distros were doing this separately, so we had a bunch of
duplication. Also, as things move to Wayland, on debian-based distros
XDG_DATA_DIRS was only being set in X sessions which mean that
switching to wayland lost you your snappy desktop files.

This tries to fix all that, hopefully in a sane way.
2017-08-29 13:32:03 +01:00