You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running the lingot flatpak from flathub on Fedora Silverblue. Each time I start the app, I need to go into the preferences and reconfigure the capture settings. This is because the flatpak environment does not map the user home directory in by default. Instead it only exposes $HOME/.var and then sets XDG_CONFIG_HOME=/var/home/jeckersb/.var/app/org.nongnu.lingot/config. However, lingot does not respect XDG_CONFIG_HOME and always uses $HOME/.config. Because of this, lingot can neither read the config file I place under XDG_CONFIG_HOME, nor can it write to the default location because $HOME/.config does not exist. So each invocation of the app is as if the app has never been run before.
$ flatpak run --command=sh org.nongnu.lingot
[📦 org.nongnu.lingot ~]$ echo $XDG_CONFIG_HOME
/var/home/jeckersb/.var/app/org.nongnu.lingot/config
[📦 org.nongnu.lingot ~]$ ls -al
total 0
drwxr-xr-x. 4 jeckersb jeckersb 80 Nov 22 09:21 .
drwxr-xr-x. 3 jeckersb jeckersb 60 Nov 22 09:21 ..
drwxr-xr-x. 3 jeckersb jeckersb 60 Nov 22 09:21 .local
drwxr-xr-x. 3 jeckersb jeckersb 60 Nov 22 09:21 .var
[📦 org.nongnu.lingot ~]$ lingot
Creating directory /var/home/jeckersb/.config/lingot// ...
Cannot create config folder '/var/home/jeckersb/.config/lingot//': No such file or directory
Creating file /var/home/jeckersb/.config/lingot/lingot.conf ...
error saving config file
Ok
error reading config fileerror opening config file /var/home/jeckersb/.config/lingot/lingot.conf, assuming default values : No such file or directory
cannot read UI settings fileerror saving config file
I am running the lingot flatpak from flathub on Fedora Silverblue. Each time I start the app, I need to go into the preferences and reconfigure the capture settings. This is because the flatpak environment does not map the user home directory in by default. Instead it only exposes
$HOME/.var
and then setsXDG_CONFIG_HOME=/var/home/jeckersb/.var/app/org.nongnu.lingot/config
. However, lingot does not respectXDG_CONFIG_HOME
and always uses$HOME/.config
. Because of this, lingot can neither read the config file I place underXDG_CONFIG_HOME
, nor can it write to the default location because$HOME/.config
does not exist. So each invocation of the app is as if the app has never been run before.If
XDG_CONFIG_HOME
is set, then the config path should prefer that, otherwise it should fall back to$HOME/.config
. (https://specifications.freedesktop.org/basedir-spec/latest/#variables)If I get time I'll put together a PR for this, but for now just wanted to document it before I forget 😄
The text was updated successfully, but these errors were encountered: