/etc/profile.d/snapd.sh is overwriting PATH and XDG_DATA_DIRS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd (Ubuntu) |
Confirmed
|
Undecided
|
Zygmunt Krynicki |
Bug Description
snapd is creating a file /etc/profile.
PATH=
if [ -z "" ]; then
else
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/
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=
XDG_
Seems like Fedora packaging issue: http:// copr-dist- git.fedorainfra cloud.org/ cgit/zyga/ snapcore/ snapd.git/ tree/snapd. spec?h= f24#n155
I hope this is the right place for this issue.