Leafpad does not add opened docs to recently-used.xbel

Bug #1472376 reported by johny why
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Thunar File Manager
Confirmed
Medium
leafpad (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

 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

Revision history for this message
johny why (johnywhy) wrote :
Revision history for this message
In , johny why (johnywhy) wrote :

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in leafpad (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Si Dedman (si-dedman) wrote :

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.

Revision history for this message
In , Theo Linkspfeifer (lastonestanding) wrote :

Nemo and Caja actually do add an entry to recently-used.xbel, but Thunar, PCManFM and Nautilus do not.

Revision history for this message
In , Theo Linkspfeifer (lastonestanding) wrote :

Oddly, Nautilus adds the entry when using Open with other Application > Leafpad.

Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote :

It sounds like from the upstream bug that this is not a Leafpad bug but potentially a bug in a variety of file managers. I'm not sure I consider this a bug in PCManFM since it doesn't really seem to offer a recently used option, but I can confirm it does not add to the recently-used.xbel. That said, I'm removing the Lubuntu Packages Team.

Revision history for this message
In , Theo Linkspfeifer (lastonestanding) wrote :

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).

Revision history for this message
In , Andreldm-2 (andreldm-2) wrote :

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.

Changed in thunar:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
johny why (johnywhy) wrote :

Wow, can't believe it's like a up to the app.

The OS or file manager should track recent docs. It already does, since you can sort by date in ANY file manager.

Recent docs feature should get data from the file manager, not manage a separate list.

Revision history for this message
johny why (johnywhy) wrote :

*left up to

Revision history for this message
ԜаӀtеr Ⅼарсһуnѕkі (wxl) wrote :

I agree that the file manager should provide this data. However, if the file manager does not offer this, it's not necessarily a bug. The fact that Leafpad can't open PDFs is not a bug, even if one might want it to open them.

Regarding sorting by date, that is in no way equivalent to a list of recently accessed documents. You'll notice on file managers that support this, they can provide an updated list extremely quickly, even on a massive hard drive (think over 1TB) but to get the entire listing of that same drive and then sort by date would be orders of magnitude longer.

Changed in leafpad (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.