Skip to content

fix: Prefer $XDG_CONFIG_HOME to $HOME/.config on Linux - #215

Merged
claration merged 1 commit into
claration:mainfrom
Ratizux:main
Jul 2, 2026
Merged

fix: Prefer $XDG_CONFIG_HOME to $HOME/.config on Linux#215
claration merged 1 commit into
claration:mainfrom
Ratizux:main

Conversation

@Ratizux

@Ratizux Ratizux commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Flatpak apps should store config to $XDG_CONFIG_HOME according to Flatpak docs.

Current implementation uses $HOME/.config, which is on tmpfs in Flatpak by default if no host directory access is granted (according to Flatpak docs). Such in the case, PlumeImpactor would lost config after restart.

Use $XDG_CONFIG_HOME, which is persistent in Flatpak sandboxes, fall back to $HOME/.config if the former does not exist.

Fixes: #153

A quick fix for current Flatpak users is flatpak override --user --persist=.config dev.khcrysalis.PlumeImpactor, which maps .var/app/dev.khcrysalis.PlumeImpactor/.config to $HOME/.config so to make it persistent.

@claration

Copy link
Copy Markdown
Owner

Thank you! I'm not very well versed in linux so I was never sure if using $HOME is the best way to do it.

@claration
claration merged commit c68637b into claration:main Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Issues With Flathub Installation

2 participants