r/ProtonDrive • u/whistlingturtle • 12d ago
CLI log files discovered in ~/.local/state/proton-drive-cli
That is a non-standard location for logs in Linux.
They should be under /var/log/ or, at worse, under ~/.cache/.
0
Upvotes
5
u/horejsek1 Proton SDK Lead 9d ago
The CLI is using $XDG_STATE_HOME as defined here https://specifications.freedesktop.org/basedir/latest/
/var/log requires access that normal user typically does not have, it is rather for system-wide logs or services. ~/.cache can be wiped anytime, which is not wanted to preserve logs for debug purposes.
See README where data is stored: https://github.com/ProtonDriveApps/sdk/blob/main/cli/README.md#where-data-is-stored
3
u/blobCabbage 10d ago
Seems fine to me? A non-root user can't write to /var/log. And logs aren't cache.