superfly / flyctl

Command line tools for fly.io services
https://fly.io
Apache License 2.0
1.36k stars 222 forks source link

Follow the Freedesktop XDG base directory standard #3700

Open x80486 opened 3 days ago

x80486 commented 3 days ago

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:

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

dangra commented 3 days ago

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