Commit cbe714fc authored by intrigeri's avatar intrigeri

Nautilus extension: avoid spamming the logs due to missing method.

Without this change I see a dozen or so warnings in the Journal:

  nautilus_menu_provider_get_background_items: assertion
  'NAUTILUS_IS_MENU_PROVIDER (provider)' failed

Nautilus upstream developers are going to discuss if/how they want to address
this on their side; in the meantime they recommend simply adding a no-op method
to silence the logs, so here we go.
parent 8f6303a1
......@@ -93,3 +93,7 @@ class MatExtension(GObject.GObject, Nautilus.MenuProvider):
self.show_message(_("Unable to clean %s") % file_path, Gtk.MessageType.ERROR)
self.show_message(_("Unable to process %s") % file_path, Gtk.MessageType.ERROR)
# Workaround
def get_background_items(self, window, file):
return None
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment