From f9fd1832f94c8ee130901c5aabdf7c158e1a62e3 Mon Sep 17 00:00:00 2001 From: mammo0 Date: Fri, 20 Dec 2024 10:24:16 +0100 Subject: [PATCH] replace ownCloud references with Nextcloud -> fixes conflicts with the ownCloud extension Signed-off-by: mammo0 --- shell_integration/nautilus/syncstate.py | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/shell_integration/nautilus/syncstate.py b/shell_integration/nautilus/syncstate.py index eb5e0a087b99f..cb224a72b8462 100644 --- a/shell_integration/nautilus/syncstate.py +++ b/shell_integration/nautilus/syncstate.py @@ -28,7 +28,7 @@ from gi.repository import GObject, Nautilus -# Note: setappname.sh will search and replace 'ownCloud' on this file to update this line and other +# Note: setappname.sh will search and replace 'Nextcloud' on this file to update this line and other # occurrences of the name appname = 'Nextcloud' @@ -175,7 +175,7 @@ def _get_version(self, action, args): socketConnect = SocketConnect() -class MenuExtension_ownCloud(GObject.GObject, Nautilus.MenuProvider): +class MenuExtension_Nextcloud(GObject.GObject, Nautilus.MenuProvider): def __init__(self): GObject.GObject.__init__(self) @@ -270,18 +270,18 @@ def ask_for_menu_items(self, files): if len(menu_items) == 0: return [] - # Set up the 'ownCloud...' submenu - item_owncloud = Nautilus.MenuItem( + # Set up the 'Nextcloud...' submenu + item_nextcloud = Nautilus.MenuItem( name='IntegrationMenu', label=self.strings.get('CONTEXT_MENU_TITLE', appname)) menu = Nautilus.Menu() - item_owncloud.set_submenu(menu) + item_nextcloud.set_submenu(menu) for action, enabled, label in menu_items: item = Nautilus.MenuItem(name=action, label=label, sensitive=enabled) item.connect("activate", self.context_menu_action, action, filesstring) menu.append_item(item) - return [item_owncloud] + return [item_nextcloud] def legacy_menu_items(self, files): @@ -315,11 +315,11 @@ def legacy_menu_items(self, files): if not shareable: return [] - # Set up the 'ownCloud...' submenu - item_owncloud = Nautilus.MenuItem( + # Set up the 'Nextcloud...' submenu + item_nextcloud = Nautilus.MenuItem( name='IntegrationMenu', label=self.strings.get('CONTEXT_MENU_TITLE', appname)) menu = Nautilus.Menu() - item_owncloud.set_submenu(menu) + item_nextcloud.set_submenu(menu) # Add share menu option item = Nautilus.MenuItem( @@ -342,7 +342,7 @@ def legacy_menu_items(self, files): item_emailprivatelink.connect("activate", self.context_menu_action, 'EMAIL_PRIVATE_LINK', filename) menu.append_item(item_emailprivatelink) - return [item_owncloud] + return [item_nextcloud] def context_menu_action(self, menu, action, filename): @@ -350,7 +350,7 @@ def context_menu_action(self, menu, action, filename): socketConnect.sendCommand(action + ":" + filename + "\n") -class SyncStateExtension_ownCloud(GObject.GObject, Nautilus.InfoProvider): +class SyncStateExtension_Nextcloud(GObject.GObject, Nautilus.InfoProvider): def __init__(self): GObject.GObject.__init__(self)