linuxmint / nemo-extensions

A set of extensions for Nemo
410 stars 150 forks source link

Each preview of a file generates around 180 log entries #480

Open Jeremy7701 opened 1 year ago

Jeremy7701 commented 1 year ago
 * Nemo version 5.6.4
 * Is issue with  windowed nemo?
 * Distribution - (LMDE5)
 * Graphics hardware *and* driver used
 * 64 bit

Issue

Each preview operation on a file regenerates many entries (approx 180) in the style:-

Apr 26 22:44:58 hal nemo-preview-st[4300]: JS LOG: Register mimetype video/x-flc
Apr 26 22:44:58 hal nemo-preview-st[4300]: JS LOG: Register mimetype video/x-fli
Apr 26 22:44:58 hal nemo-preview-st[4300]: JS LOG: Register mimetype video/x-flic
Apr 26 22:44:58 hal nemo-preview-st[4300]: JS LOG: Register mimetype video/x-flv
Apr 26 22:44:58 hal nemo-preview-st[4300]: JS LOG: Register mimetype video/x-m4v
...

This action is repeated each time a file is previewed (even if the same file is previewed)

Steps to reproduce

Preview any file. Check the output of journalctl -b0 --user | grep 'JS LOG' | wc -l Do another preview and see the message count increase .

Expected behaviour

  1. No logging of registration of mimetypes for preview?
  2. Caching of the list of registered preview mimetypes, since it's not going to change.

Other information