! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Leafpad does not add opened docs to recently-used.xbel
Status:
RESOLVED: MOVED

Comments

Description johny why 2015-07-07 21:41:20 CEST
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
Comment 1 Simon Dedman 2018-07-31 00:04:34 CEST
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.
Comment 2 Theo Linkspfeifer editbugs 2018-10-21 15:36:54 CEST
Nemo and Caja actually do add an entry to recently-used.xbel, but Thunar, PCManFM and Nautilus do not.
Comment 3 Theo Linkspfeifer editbugs 2018-10-21 15:42:00 CEST
Oddly, Nautilus adds the entry when using Open with other Application > Leafpad.
Comment 4 Theo Linkspfeifer editbugs 2018-10-22 14:28:55 CEST
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="&apos;leafpad %f&apos;" modified="2018-10-22T12:14:03Z" count="1"/>
  <bookmark:application name="Mousepad" exec="&apos;mousepad %u&apos;" 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).
Comment 5 Andre Miranda editbugs 2018-10-23 04:19:34 CEST
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.
Comment 6 Git Bot editbugs 2020-05-26 23:22:37 CEST
-- 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

Bug #12050

Reported by:
johny why
Reported on: 2015-07-07
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
5 users

Version

Attachments

screenshot of Recent Documents menu (79.18 KB, image/png)
2015-07-07 21:41 CEST , johny why
no flags

Additional information