mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-06-03 10:24:51 +00:00
Drop GNOME 42 compatibility
GNOME 43 is from 2022-09, i.e. almost as old as Ghostty, so not longer worth supporting here.
This commit is contained in:
8
dist/linux/ghostty_nautilus.py
vendored
8
dist/linux/ghostty_nautilus.py
vendored
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user