Thunar daemon / GtkRecentManager creates orphane recently-used.xbel files on shutdown
Version information
thunar/testing,now 4.20.2-1 amd64
Steps to reproduce
I'm using custom script to monitor ~/.local/share/recently-used.xbel.XXXXXX
files creation and moving (inotify + lsof). And on system shutdown / user logout I can easily reproduce creation of such file without merging it with primary recently-used.xbel
.
Current behavior
Temporary file creation is needed for GtkRecentManager to work. I think action to update recent history is mis-triggered on daemon shutdown. I.e. we're getting race somewhere:
- Thunar starts termination after SIGTERM
- Thunar asks GtkRecentManager to update history
- Thunar actually terminates, leaving recent_manager in half-baked state
But all of this is just my guess.
Expected outcome
No spam with temporary files in ~/.local/share