Created attachment 6375 screenshot of Recent Documents menu tests, with some interesting results: - right-click inside a folder in thunar. Pick "Create > Empty File". - open the file in leafpad - type something, and quit leafpad, saving the file. - the file will NOT be found the Places > Recent Documents menu. - copy a text file from another folder. - open the copy. type something, and quit leafpad. - the file will NOT be found the Places > Recent Documents menu. - open leafpad from it's program launcher. - type something. - quit, saving the file. - the file WILL be found the Places > Recent Documents menu. the only one that gets listed in recently-used.xbel is the one created in leafpad, ie the only one in my test above that shows up in the recent documents menu. $ ls -l ~/.local/share/recently-used.xbel -rw------- 1 eggman eggman 14959 Jul 5 12:51 /home/eggman/.local/share/recently-used.xbel leafpad 0.8.18.1-4 linux mint 17.1 xfce 4.12
Bug from conversation on this forum post: http://forum.xfce.org/viewtopic.php?pid=49096#p49096 Bug actually looks like it affects multiple programs, all of which may need to do something differently when files are opened in order for that action to be recognised by .local/share/recently-used.xbel If anyone know what that is, that would be useful as per-program bugs could then be filed as appropriate. Cheers.
Nemo and Caja actually do add an entry to recently-used.xbel, but Thunar, PCManFM and Nautilus do not.
Oddly, Nautilus adds the entry when using Open with other Application > Leafpad.
Leafpad does not support GtkRecentManager, and therefore it cannot manage recently used files. Nemo and Caja apparently handle things differently and update recently-used.xbel instead if the application is not able to: <bookmark:application name="nemo" exec="'leafpad %f'" modified="2018-10-22T12:14:03Z" count="1"/> <bookmark:application name="Mousepad" exec="'mousepad %u'" modified="2018-10-22T12:14:10Z" count="1"/> In the third test case the entry is actually added by the "Save as" dialog window (GtkFileChooserDialog).
Mousepad works as expected, but it seems I can reproduce this misbehavior with Geany if the file was recently opened with it, not sure though. I can't find any occurrences of "gtk_recent_manager_" in Thunar's source, so it never touches recently-used.xbel. All in all, I don't know if it is responsibility of the file manager to handle this or if the application has the final word on it, say for instance due privacy reasons.
-- GitLab Migration Automatic Message -- This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/thunar/-/issues/110. Please create an account or use an existing account on one of our supported OAuth providers. If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev