Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Follow OS-specific paths for installed binaries and logs instead of ~/.skiko #897

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

62832
Copy link

@62832 62832 commented Mar 24, 2024

Currently, Skiko always creates the $HOME/.skiko directory when used as a dependency by other projects, which can only be overridden by the skiko.data.path property. This PR does away with this directory and makes Skiko more compliant with OS-specific standards for stored program data and logs.

  • On Linux-based systems (including Android), Skiko will follow the XDG Base Directory Specification and store installed binaries under $XDG_DATA_HOME/skiko and logs under $XDG_STATE_HOME/skiko, with the appropriate fallbacks if the former variables are unset. As a result, this PR closes Follow XDG Base Directory #707.
  • On Windows, installed binaries and logs will be stored under %LOCALAPPDATA%/Skiko.
  • On macOS and iOS, installed binaries will be stored under ~/Library/Application Support/Skiko and logs under ~/Library/Logs.

@62832
Copy link
Author

62832 commented Apr 15, 2024

It came to my attention at some point that the choice of following XDG paths for Android is actually incorrect. Android apparently has its own storage scheme for such data somewhere under the /data directory, but it's unclear to me what this should be for Skiko.

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.

Follow XDG Base Directory
1 participant