#442 Nautilus context menu action for the new terminal app (Ptyxis)
Closed: Fixed 2 months ago by catanzaro. Opened 6 months ago by xalt7x.

GNOME Terminal has extension that adds the 'Open in Terminal' actions to the right-click context menu. Relevant package gnome-terminal-nautilus is currently pre-installed in Fedora Workstation.
Workstation WG has recently approved switching GNOME Terminal to Ptyxis (#417]). Please consider providing similar Nautilus context menu action for Ptyxis to enhance user experience.

As Ptyxis currently doesn't have Nautilus plugin, there are several ways to resolve this:
- As proposed in #417, it should be possible to patch existing Nautilus action so that it call Ptyxis instead of KGX (GNOME Console)
- 3rd party plugin nautilus-open-any-terminal can be packaged and used instead.
- There is also related GNOME Files issue #2978 (“Open In Terminal: choose which terminal application to open”), which may be resolved at some point.


I'd rather just patch nautilus than add another package.

Metadata Update from @catanzaro:
- Issue tagged with: meeting-request

6 months ago

(We'd have to be careful about internationalization, though.)

Metadata Update from @catanzaro:
- Issue untagged with: meeting-request

6 months ago

If a user wants to swap terminals, Nautilus should be able to respect that choice. Why aren't we asking Nautilus to adapt appropriately here?

FWIW, Nautilus devs seem to want to wait for the XDG specs? (xdg-terminal-exec or terminal intent)

https://gitlab.gnome.org/GNOME/nautilus/-/issues/2446#note_2015517

@catanzaro

I'd rather just patch nautilus than add another package.

With going that route please make sure to keep kgx integration still working for people who prefer to continue using it.

Metadata Update from @catanzaro:
- Issue tagged with: meeting-request

5 months ago

Metadata Update from @ngompa:
- Issue untagged with: meeting-request
- Issue tagged with: meeting

5 months ago

Metadata Update from @ngompa:
- Issue set to the milestone: Fedora 41

5 months ago
#agreed Packaging nautilus-open-any-terminal is good to do regardless of whether we'll use it or not
#agreed Michael will patch nautilus; we can remove the patch if we switch to nautilus-open-any-terminal
The Working Group discusses xdg-terminal-exec, but isn't impressed

I believe xdg-terminal-exec solves a real problem and is really useful, but it has not been integrated into gnome-control-center yet.

Metadata Update from @ngompa:
- Issue untagged with: meeting

4 months ago

CC @hergertme

What nautilus does to open Console is call org.freedesktop.Application.Open (nautilus change). That doesn't work for Ptyxis because it doesn't implement the GApplication.open vfunc. I had been hoping to just replace org.gnome.Console with org.gnome.Ptyxis in the D-Bus calls, but looking at the complexity of ptyxis_application_command_line() I'm not sure that trying to implement that is advisable. Christian, your opinion?

The alternative of course is to patch nautilus to just check if /usr/bin/ptyxis exists and spawn it manually without any D-Bus. That shouldn't be hard.

Ptyxis from git main now has the Open RPC implemented.

Well that simplifies things for me. Thank you!

I will patch nautilus accordingly. The downside is it will say "Open in Console" rather than "Open in Terminal" to avoid translation issues.

This broke nautilus for those of us who prefer kgx. This is unfortunate because I am experiencing a bug with Ptyxis which hampers its usability.

Yeah but we have the exact same behavior that upstream does: only one terminal is supported, all we've done is change which terminal that is. I think this is questionable, but that's an upstream choice. I don't plan to spend any more time on this myself.

Metadata Update from @catanzaro:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

2 months ago

(The gnome-console maintainer in Fedora could try adding a nautilus extension. This is out of scope for the Working Group, though.)

Log in to comment on this ticket.

Metadata