Bug 465339

Summary: Flatpak Permissions Settings KCM ignores XDG_DATA_HOME env var
Product: [Applications] systemsettings Reporter: jesse12p+kdebugs
Component: kcm_flatpakAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: joshiesuhaas0, nate
Priority: NOR    
Version First Reported In: 5.26.90   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.27
Sentry Crash Report:

Description jesse12p+kdebugs 2023-02-05 21:01:12 UTC
SUMMARY

The KCM does not find my flatpak/overrides folder, as I have XDG_DATA_HOME env var set to custom path, and the KCM ignores that env var.

STEPS TO REPRODUCE
1. Set XDG_DATA_HOME env var
2. Make changes in the KCM

OBSERVED RESULT

The KCM looks for and modifies files in $HOME/.local/share/flatpak/overrides

EXPECTED RESULT

The KCM looks for and modifies files in $XDG_DATA_HOME/flatpak/overrides

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Bug Janitor Service 2023-02-05 21:51:49 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/flatpak-kcm/-/merge_requests/30
Comment 2 Nicolas Fella 2023-02-06 15:00:09 UTC
Git commit 345ac9f47b93aa3109baae507c06a97d4c2e7e43 by Nicolas Fella.
Committed on 06/02/2023 at 14:59.
Pushed by nicolasfella into branch 'master'.

Use QStandardPaths::GenericDataLocation instead of hardcoding .local/share

M  +2    -1    flatpakhelper.cpp

https://invent.kde.org/plasma/flatpak-kcm/commit/345ac9f47b93aa3109baae507c06a97d4c2e7e43
Comment 3 Nicolas Fella 2023-02-06 15:00:42 UTC
Git commit 8606f892f1a605cb97ee3aa676c19e5c6ce21868 by Nicolas Fella.
Committed on 06/02/2023 at 15:00.
Pushed by nicolasfella into branch 'Plasma/5.27'.

Use QStandardPaths::GenericDataLocation instead of hardcoding .local/share
(cherry picked from commit 345ac9f47b93aa3109baae507c06a97d4c2e7e43)

M  +2    -1    flatpakhelper.cpp

https://invent.kde.org/plasma/flatpak-kcm/commit/8606f892f1a605cb97ee3aa676c19e5c6ce21868