cloudflared icon indicating copy to clipboard operation
cloudflared copied to clipboard

configuration: Follow XDG Base Directory standard for appropriate environments

Open Leptopoda opened this issue 3 years ago • 1 comments

imlements: #119

What it does:

Follows the XDG Base Directory standard for the user config dir. It uses github.com/adrg/xdg to find the right dir. It will try to resolve the $XDG_CONFIG_HOME and revert to the platform specific default ones.

Prior directories will still work (similar to the old windows ~/cloudflare-warp). I've implemented it on all Platforms but don't know how used they are on OSX or Windows so if desired I'll only enable it on Linux.

What it doesn't:

It does not implement the xdg spec regarding /etc/xdg/cloudflared as It isn't commonly used, with the only big software using it on my system being systemd which symlinks back to /etc/systemd. Further the dir isn't used at all on any of my servers which I guess is the primary client of /etc/cloudfalre. Also the issue did mention the cleanup of $HOMEand not the full implementation of the spec ;)

Links

  • https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Leptopoda avatar Aug 17 '22 08:08 Leptopoda

Friendly ping :upside_down_face:

Leptopoda avatar Aug 26 '22 13:08 Leptopoda

@Leptopoda thank you for your contribution. However, we are planning to move more configurations to be managed remotely, via the dashboard or API.

chungthuang avatar Mar 05 '24 17:03 chungthuang