** No longer affects: flatpak (Ubuntu Bionic)
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to flatpak in Ubuntu.
https://bugs.launchpad.net/bugs/1801814
Title:
Environment overwrites XDG_DATA_DIRS
Status in flatpak package in Ubuntu:
Fix Released
Status in flatpak source package in Focal:
Fix Released
Bug description:
[Impact]
Flatpak gdm environment overwrites any custom configuration (eg in
~/.config/environment.d ) while using the Wayland session.
[Test Case]
Create a local environment configuration
$ mkdir -p ~/.config/environment.d
$ echo "XDG_DATA_DIRS=${XDG_DATA_DIRS}:/tmp" >>
~/.config/environment.d/test.conf
Reboot and ensure you use the Wayland session. Then check your
XDG_DATA_DIRS from systemctl, the issue occurs when /tmp is not set,
the issue is resolved if it is set.
$ systemctl --user show-environment |grep XDG_DATA_DIRS
[Regression Potential]
Low. This only affects users using the Wayland session with a custom
environment (which are both non-standard configuration).
[Original Description]
Package contains this file:
/usr/share/gdm/env.d/flatpak.env
With this single line content:
XDG_DATA_DIRS=$HOME/.local/share/flatpak/exports/share/:/var/lib/flatpak/exports/share/:/usr/local/share/:/usr/share/
This is setting the XDG_DATA_DIRS variable, irrespective of it's
preexisting value.
In my system I have snapd installed and I have a local configuration
for that variable under .config/environment.d/, which gets overwritten
and causes issues.
----
1) The release of Ubuntu you are using, via 'lsb_release -rd' or
System -> About Ubuntu
Description: Ubuntu 18.10
Release: 18.10
2) The version of the package you are using, via 'apt-cache policy
pkgname' or by checking in Software Center
flatpak:
Installed: 1.0.4-1
Candidate: 1.0.4-1
Version table:
*** 1.0.4-1 500
500 http://ie.archive.ubuntu.com/ubuntu cosmic/universe amd64 Packages
100 /var/lib/dpkg/status
3) What you expected to happen
To have XDG_DATA_DIRS variable populated with the package's value as
well as my own.
4) What happened instead
Only the configuration from flatpak's package survived.
ProblemType: Bug
DistroRelease: Ubuntu 18.10
Package: flatpak 1.0.4-1
ProcVersionSignature: Ubuntu 4.18.0-10.11-generic 4.18.12
Uname: Linux 4.18.0-10-generic x86_64
ApportVersion: 2.20.10-0ubuntu13
Architecture: amd64
CurrentDesktop: GNOME
Date: Tue Nov 6 00:55:32 2018
InstallationDate: Installed on 2018-05-16 (173 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: flatpak
UpgradeStatus: Upgraded to cosmic on 2018-10-18 (18 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flatpak/+bug/1801814/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp