mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 13:36:02 +03:00
[PR #40] [MERGED] Use $XDG_DATA_HOME on macOS if it is set. #367
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#367
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/FiloSottile/mkcert/pull/40
Author: @lgarron
Created: 7/6/2018
Status: ✅ Merged
Merged: 7/7/2018
Merged by: @FiloSottile
Base:
master← Head:xdg-data-home-macOS📝 Commits (1)
92338fcUse $XDG_DATA_HOME on macOS if it is set.📊 Changes
1 file changed (+5 additions, -6 deletions)
View changed files
📝
main.go(+5 -6)📄 Description
I was a little surprised to see
mkcertuse~/Library/Application Supportinstead of$XDG_DATA_HOMEuntil I looked at the code and see it was intentional choice.I personally think it would be good to follow the XDG spec fully and default to
~/.local/shareon macOS – rather than introducing custom behaviour – but it's ultimately up to you.This PR offers a compromise, using
$XDG_DATA_HOMEif set, if you'd be okay with that. :-)(I explicitly set XDG config vars in my shell, in order to try to get as many programs to use the same data storage structure as possible.)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.