Opening files doesn't add them to Recent in flatpak builds
Affected Version
- Version: master
- Distribution: Fedora 39
- Happens with development Flatpak: Yes
Steps to reproduce
- Open a file
- Open Recent
- The file doesn't show up
Expected Behavior
Files opened by Nautilus show up in its own Recent files panel.
Additional Information
This is because the GtkRecentManager
obtained by gtk_recent_manager_get_default ()
uses a file in the applicaton's sanbox to save and retrieve items. GVFS however, uses the host's file.
The best fix for this would probably be for Nautilus to create a GtkRecentManager
for the host's recently-used.xbel
when running inside Flatpak, only falling back to get_default if it isn't available.