From f1bed9dd6a4a44aedbf634a6e7627cdb6d1b2366 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Mon, 29 Dec 2025 22:24:37 +0100 Subject: [PATCH] Inline trivial method --- dist/linux/ghostty_nautilus.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/dist/linux/ghostty_nautilus.py b/dist/linux/ghostty_nautilus.py index 7e6c6e302..965e8107e 100644 --- a/dist/linux/ghostty_nautilus.py +++ b/dist/linux/ghostty_nautilus.py @@ -21,13 +21,10 @@ from gi.repository import Nautilus, GObject, Gio class OpenInGhosttyAction(GObject.GObject, Nautilus.MenuProvider): - def _open_terminal(self, path): - cmd = ['ghostty', f'--working-directory={path}', '--gtk-single-instance=false'] - Gio.Subprocess.new(cmd, Gio.SubprocessFlags.NONE) - def _menu_item_activated(self, _menu, paths): for path in paths: - self._open_terminal(path) + cmd = ['ghostty', f'--working-directory={path}', '--gtk-single-instance=false'] + Gio.Subprocess.new(cmd, Gio.SubprocessFlags.NONE) def _make_item(self, name, paths): item = Nautilus.MenuItem(name=name, label='Open in Ghostty',