From ab4b54e2a45e949a857468a2d218f6ec10194d4a Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Mon, 29 Dec 2025 23:07:01 +0100 Subject: [PATCH] Drop GNOME 42 compatibility GNOME 43 is from 2022-09, i.e. almost as old as Ghostty, so not longer worth supporting here. --- dist/linux/ghostty_nautilus.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/dist/linux/ghostty_nautilus.py b/dist/linux/ghostty_nautilus.py index cd5011b9f..01202031c 100644 --- a/dist/linux/ghostty_nautilus.py +++ b/dist/linux/ghostty_nautilus.py @@ -54,12 +54,8 @@ def get_items_for_files(name, files): class GhosttyMenuProvider(GObject.GObject, Nautilus.MenuProvider): - def get_file_items(self, *args): - # Nautilus 3.0 API passes args (window, files), 4.0 API just passes files - files = args[0] if len(args) == 1 else args[1] + def get_file_items(self, files): return get_items_for_files('GhosttyNautilus::open_in_ghostty', files) - def get_background_items(self, *args): - # Nautilus 3.0 API passes args (window, file), 4.0 API just passes file - file = args[0] if len(args) == 1 else args[1] + def get_background_items(self, file): return get_items_for_files('GhosttyNautilus::open_folder_in_ghostty', [file])