mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-28 00:39:37 -05:00
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.
This commit is contained in:
parent
c9190f9d9a
commit
4da79cac79
@ -93,3 +93,7 @@ class OnionShareExtension(GObject.GObject, Nautilus.MenuProvider):
|
||||
for file in files:
|
||||
file_list.append(self.url2path(file))
|
||||
self.exec_onionshare(file_list)
|
||||
|
||||
# Workaround https://bugzilla.gnome.org/show_bug.cgi?id=784278
|
||||
def get_background_items(self, window, file):
|
||||
return None
|
||||
|
Loading…
Reference in New Issue
Block a user