@strizhechenko AFAIK `local` means the same as non-local but custom and overrides non-local, like `/usr/local/bin` and `~/.local/bin` overrides `/usr/bin`, `var` means "variable" and is meant to be used as a place to store application/service volatile data. So `~/.var/flatpak/...` is more UNIX-like.
@akhil the convention in question is the XDG Base Directory spec:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
It does not specify `~/.var`; instead, as I understood, `$XDG_DATA_HOME/flatpak` should be used; and if `$XDG_DATA_HOME` is not set, `~/.local/share` should be taken as its value.
Sadly, almost nobody does that properly anyway. Even when people try to do it the right way, they most often just hard-code `~/.local/share/whatever`, without taking that env var into account.
@strizhechenko @clacke @drq
@akhil the convention in question is the XDG Base Directory spec:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
It does not specify `~/.var`; instead, as I understood, `$XDG_DATA_HOME/flatpak` should be used; and if `$XDG_DATA_HOME` is not set, `~/.local/share` should be taken as its value.