Bugzilla – Bug 1222222
XDG_DATA_DIRS is not set unless flatpak is installed
Last modified: 2024-04-02 09:14:02 UTC
XDG_DATA_DIRS is not set unless the flatpak package is installed. I do not know when this happened, all I know is that flatpak have been installed at some point and I'm trying to get rid of it. With flatpak it looks like this: jonas@jonas:~> echo $XDG_DATA_DIRS /home/jonas/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
It is perfectly acceptable that $XDG_DATA_DIR is unset set unless needed. Specification: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html Code: /etc/profile.d/flatpak.sh Do you have reason to believe it should be set to specific paths even when flatpak is not installed?
This actually breaks many things. Several things in Qt rely on it, for example: QStandardPaths. When was it removed and what's the reasoning? And why is it set when flatpak is installed?
(In reply to Jonas Kvinge from comment #2) > This actually breaks many things. How? > Several things in Qt rely on it, for example: QStandardPaths. According to the specification this is a bug in these packages. > When was it removed and what's the reasoning? unknown. When was it last working, maybe start with the changes since. > And why is it set when flatpak is installed? Because flatpak needs it, the script finds it empty and sets it to it's needs, adding it's own path plus the default from the specification.