Skip to content

Conversation

@caoimhebyrne
Copy link

@caoimhebyrne caoimhebyrne commented Apr 4, 2025

Since XDG_CONFIG_HOME is used on Linux, let's show macOS some love too? 🤔

This does introduce a breaking change for macOS users, though. They will need to migrate their configuration from .devauth to ~/Library/Application Support/DevAuth for it to be recognized, which can be done quite simply:

# Create the DevAuth configuration directory
mkdir ~/Library/Application Support/DevAuth

# Copy the required configuration files to the new directory
cp ~/.devauth/* ~/Library/Application\ Support/DevAuth

# (Optional) remove ~/.devauth
rm -rf ~/.devauth

I'm unsure if DevAuth should perform a migration here. If you don't think a migration is worth it: logging a warning whenever DevAuth is launched without a ~/Library/Application Support/DevAuth directory, but with a ~/.devauth directory, would make sense.

@caoimhebyrne
Copy link
Author

caoimhebyrne commented Apr 4, 2025

Also, I will not add %appdata% on Windows, nobody uses Windows anyways so :P

@caoimhebyrne caoimhebyrne force-pushed the use-application-support-directory-on-macos branch from 582822a to 1f62304 Compare April 4, 2025 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant