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',