Public bug reported:
snapd is creating a file /etc/profile.d/snapd.sh which is overwriting the PATH
and XDG_DATA_DIRS variables:
PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:/builddir/.local/bin:/builddir/bin:/snap/bin
if [ -z "" ]; then
XDG_DATA_DIRS=/usr/local/share/:/usr/share/:/var/lib/snapd/desktop
else
XDG_DATA_DIRS="":/var/lib/snapd/desktop
fi
export XDG_DATA_DIRS
This is on Fedora 24 GNOME version. Snapd was installed using the Copr
repo.
Version information from `dnf info snapd`
Installed Packages
Name : snapd
Arch : x86_64
Epoch : 0
Version : 2.14
Release : 1.fc24
Size : 23 M
Repo : @System
>From repo : zyga-snapcore
What was expected:
PATH variable with its default value appended with /snap/bin.
XDG_DATA_DIRS variable with its default value appended with
/var/lib/snapd/desktop.
What happened instead:
The default value of PATH variable is overwritten.
The default value of XDG_DATA_DIRS is overwritten.
A simple fix which I used:
PATH=$PATH:/snap/bin
XDG_DATA_DIRS=$XDG_DATA_DIRS:/var/lib/snapd/desktop
** Affects: snapd (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1622678
Title:
/etc/profile.d/snapd.sh is overwriting PATH and XDG_DATA_DIRS
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1622678/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs