Inline trivial method

This commit is contained in:
Sebastian Wiesner
2025-12-29 22:24:37 +01:00
parent 1fa6641a6a
commit f1bed9dd6a

View File

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