-
Notifications
You must be signed in to change notification settings - Fork 783
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use XDG_CACHE_DIR for the log file #2272
base: master
Are you sure you want to change the base?
Conversation
Hm, this has been fixed, I remember this was the case a few releases prior to 0.14. The GUI log is written to Can you re-check with the latest version if it is still happening? |
You are right, looks like I'm late. It would be better to use XDG_CACHE_DIR, though. |
Thanks for bringing this up @rnhmjoj. As @MaxXor pointed out, I believe this is indeed already fixed. I've been wanting to move the following files to
The above is for the sake of having as much stuff in one directory as possible (as opposed to scattered around the system). This makes removing the GUI easier. Then again, a proper uninstaller (or uninstall procedure) can also be a solution. I'm not hyped about In any case, let me know if the current tagged release is a problem directory wise, so we can look for a solution. |
The idea of the XDG spec is to allow the separation of configuration files, user generate data and cache files. The main advantage is that it makes the locations configurable; also it's easier backup by simply selecting the directory (like $XDG_DATA_HOME/monero), without worrying about excluding temporary files. I get the point about fragmentation but monero-gui is already using XDG_CACHE_HOME for the qml cache, and the log file certainly belong to this category. An "uninstall" procedure could simply be to delete: |
I maintain the monero and monero-gui packages in NixOS: this is a patch I have been using and wanted to upstream for quite some time.
I'm not sure about now, but the log defaulted to being written in the same directory of the binary (monero-wallet-gui), which is read-only in NixOS and probably other distribution.
This patch moves the log to the XDG cache directory.