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

Create files and directories according to XDG spec #1246

Open
5 tasks done
dudicoco opened this issue Jan 12, 2025 · 2 comments
Open
5 tasks done

Create files and directories according to XDG spec #1246

dudicoco opened this issue Jan 12, 2025 · 2 comments

Comments

@dudicoco
Copy link

Description

#1093 (reply in thread)

The _lima and the daemon dirs and the docker sockets are currently created within the XDG_CONFIG_HOME dir.
These contain log files, private keys and state, therefor they should be created in other XDG dirs according to the XDG spec:
XDG_CACHE_HOME
XDG_DATA_HOME
XDG_STATE_HOME

Version

No response

Operating System

  • macOS Intel <= 13 (Ventura)
  • macOS Intel >= 14 (Sonoma)
  • Apple Silicon <= 13 (Ventura)
  • Apple Silicon >= 14 (Sonoma)
  • Linux

Output of colima status

No response

Reproduction Steps

Expected behaviour

No response

Additional context

No response

@bestlem
Copy link

bestlem commented Jan 12, 2025

This is a solution.

However as colima only runs on macOS. Would it not make more sense to use macOS defined directories https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/MacOSXDirectories/MacOSXDirectories.html#//apple_ref/doc/uid/TP40010672-CH10-SW1 (Noting that Containers here means something else)

So configs in ~/Library/Preferences
images and containers in ~/Library/Caches or possibly for images ~/Library/Application Support

Anyway either XDG or Apple is better than current setup.

@dudicoco
Copy link
Author

@bestlem I don't believe it is better, I think we should follow the XDG standard since Colima already strives to follow that standard with its config file, and since the entire community strives to follow the XDG standard as well.

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

No branches or pull requests

2 participants