veeso / termscp

🖥 A feature rich terminal UI file transfer and explorer with support for SCP/SFTP/FTP/S3/SMB
https://termscp.veeso.dev
MIT License
1.49k stars 45 forks source link

[BUG] - debug log belongs in cache directory not config directory #176

Closed markstos closed 1 year ago

markstos commented 1 year ago

Description

App should follow XDG Base Directory spec regarding log file storage:

https://wiki.archlinux.org/title/XDG_Base_Directory

The log file should be written to $XDG_CACHE_HOME/termscp if $XDG_CACHE_HOME has been set, and default to $HOME/.cache/termscp if it is not set.

This makes it easier to clean up cache files later, as they are all under `~/.cache/

Thanks.

Related request: https://github.com/veeso/termscp/issues/149#issuecomment-1454336706