diff options
| author | intrigeri | 2017-12-07 05:54:27 +0000 |
|---|---|---|
| committer | intrigeri | 2017-12-07 05:54:27 +0000 |
| commit | cbe714fc2a3b57526cf9d930406dc78baa35c5d9 (patch) | |
| tree | cc74ed3735ad60a98b87adf23a430c820a9e08d3 | |
| parent | 8f6303a1f26fe8dad83ba96ab8328dbdfa3af59a (diff) | |
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.
| -rw-r--r-- | nautilus/nautilus-mat.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nautilus/nautilus-mat.py b/nautilus/nautilus-mat.py index 7c2d740..ff102b8 100644 --- a/nautilus/nautilus-mat.py +++ b/nautilus/nautilus-mat.py | |||
| @@ -93,3 +93,7 @@ class MatExtension(GObject.GObject, Nautilus.MenuProvider): | |||
| 93 | self.show_message(_("Unable to clean %s") % file_path, Gtk.MessageType.ERROR) | 93 | self.show_message(_("Unable to clean %s") % file_path, Gtk.MessageType.ERROR) |
| 94 | else: | 94 | else: |
| 95 | self.show_message(_("Unable to process %s") % file_path, Gtk.MessageType.ERROR) | 95 | self.show_message(_("Unable to process %s") % file_path, Gtk.MessageType.ERROR) |
| 96 | |||
| 97 | # Workaround https://bugzilla.gnome.org/show_bug.cgi?id=784278 | ||
| 98 | def get_background_items(self, window, file): | ||
| 99 | return None | ||
