Fixed
Details
Assignee
UnassignedUnassignedReporter
Andreas HenrikssonAndreas HenrikssonLabels
Priority
LowFix versions
Details
Details
Assignee
Unassigned
UnassignedReporter
Andreas Henriksson
Andreas HenrikssonLabels
Priority
Fix versions
Zendesk Support
Zendesk Support
Zendesk Support
Checklist
Checklist
Checklist
Created February 28, 2019 at 12:18 PM
Updated June 5, 2019 at 11:45 AM
Resolved June 5, 2019 at 11:45 AM
The "mender-cli" utility stores the token under ~/.mender/ , ref: https://sources.debian.org/src/mender-cli/1.1.0-1/cmd/util.go/#L36
Please consider following the XDG Base Directory Specification, see:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
Golang seems to have a helper funciton for this specific case, see:
https://godoc.org/github.com/golang/build/maintner/godata#XdgCacheDir
That would mean that cache files (like tokens) normally end up under: ~/.cache/mender/
(but you can override the directory using the standardized environment variables as specified in the xdg base dir spec.)
This is a specific example I've spotted, but it would be nice if the XDG Base directories where adhered to everywhere instead of using "old-school" ~/.mender/ for everything....
PS. Unused/dead code: https://sources.debian.org/src/mender-cli/1.1.0-1/cmd/root.go/#L29