mozbugbox / liferea-plugin-studio

Collection of liferea plugins
GNU General Public License v3.0
6 stars 2 forks source link

Use `XDG_*` variables to save config/state #14

Open bbhtt opened 2 years ago

bbhtt commented 2 years ago

This makes it fail to read/save settings under the sandbox https://github.com/mozbugbox/liferea-plugin-studio/blob/bebd17d2870f7d2d18994ac590a53268e177fef6/webkit-setting/webkitsetting.py#L157-L162 as Flatpak has no access to /home/user/.{config, local, cache} and the HOME variable is unchanged inside the sandbox, only XDG_* variables are set.

Instead use XDG_* variables which if not set falls back to $HOME/.{config, local/share, cache}

I haven't checked all the plugins but presumably anything that doesn't use XDG_* variables probably needs to be updated.