Bug 1222222 - XDG_DATA_DIRS is not set unless flatpak is installed
Summary: XDG_DATA_DIRS is not set unless flatpak is installed
Status: NEW
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: GNOME (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-01 23:48 UTC by Jonas Kvinge
Modified: 2024-04-02 09:14 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
Andreas.Stieger: needinfo? (jonaski)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Kvinge 2024-04-01 23:48:29 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
Comment 1 Andreas Stieger 2024-04-02 00:07:30 UTC
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?
Comment 2 Jonas Kvinge 2024-04-02 07:44:40 UTC
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?
Comment 3 Andreas Stieger 2024-04-02 09:14:02 UTC
(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.