Follow the Freedesktop XDG base directory standard
Describe
On Linux, Fly CLI is inadvertently creatin a .fly sub-directory in the user's home directory :scream:
Applications must follow the Freedesktop XDG standard — found here: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html.
Using this standard:
$XDG_CACHE_HOMEsays "temporal/non-essential" files go to$HOME/.cache/$XDG_CONFIG_HOMEsays "configuration files" go to$HOME/.config/$XDG_DATA_HOMEsays "data files" go to$HOME/.local/share/
This is just a report to consider using the defined variables for this standard to fix this bug / not bug.
It makes a lot of sense; it is easy for the user to understand, makes it easier to backup / locate / restore / manage / clear user's data, and creates less clutter in the user's home directory.
Thanks in advance...and thanks so much for your hard work on this – it's amazing!
Environment
Platform: Linux
OS specifics: Linux uplink 6.6.34-1-lts #1 SMP PREEMPT_DYNAMIC Sun, 16 Jun 2024 14:45:31 +0000 x86_64 GNU/Linux
Not the default but possible since https://github.com/superfly/flyctl/pull/2785
Indeed, FLY_CONFIG is better than nothing :raised_hands: