cgsecurity / testdisk

TestDisk & PhotoRec
https://www.cgsecurity.org/
GNU General Public License v2.0
1.55k stars 190 forks source link

Consider using XDG_CACHE_HOME for the log file #94

Closed ZerdoX-x closed 3 years ago

ZerdoX-x commented 3 years ago

This means instead of $HOME/testdisk.log, $XDG_CACHE_HOME/testdisk/log would be used. If $XDG_CACHE_HOME is not set, the fallback $HOME/.cache should be substituted instead.

cgsecurity commented 3 years ago

testdisk.log is created in the current working directory, not in $HOME/testdisk.log. This behavior is wanted and also necessary when running several instances of testdisk in parallel.

ZerdoX-x commented 3 years ago

My bad. I didn't notice that I ran testdisk in my home directory. Thank you!