flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Follow the Freedesktop XDG base directory standard

Open x80486 opened this issue 1 year ago • 2 comments

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_HOME says "temporal/non-essential" files go to $HOME/.cache/
  • $XDG_CONFIG_HOME says "configuration files" go to $HOME/.config/
  • $XDG_DATA_HOME says "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

x80486 avatar Jul 03 '24 02:07 x80486

Not the default but possible since https://github.com/superfly/flyctl/pull/2785

dangra avatar Jul 03 '24 14:07 dangra

Indeed, FLY_CONFIG is better than nothing :raised_hands:

x80486 avatar Jul 10 '24 17:07 x80486