After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 786580 - gdesktopappinfo.c: Add Tilix as a fallback terminal
gdesktopappinfo.c: Add Tilix as a fallback terminal
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: gio
2.53.x
Other Linux
: Normal minor
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2017-08-21 20:12 UTC by Cj Malone
Modified: 2017-11-27 18:50 UTC
See Also:
GNOME target: ---
GNOME version: 3.25/3.26


Attachments
patch (833 bytes, patch)
2017-08-21 20:12 UTC, Cj Malone
rejected Details | Review
drop xterm check (774 bytes, patch)
2017-08-23 19:38 UTC, Cj Malone
committed Details | Review

Description Cj Malone 2017-08-21 20:12:26 UTC
Created attachment 358093 [details] [review]
patch

Currently g_app_info_create_from_commandline tries to open
gnome-terminal, and then fallsback on nxterm, color-xterm, rxvt,
xterm, dtterm and xterm again.

With this patch it attempts to use tilix before falling back to xterm.

Note this commit replaces a xterm reference with tilix, but it's
not removing xterm as a fallback due to be being fallen back on
again a few lines down.
Comment 1 Philip Withnall 2017-08-23 10:36:18 UTC
Review of attachment 358093 [details] [review]:

I’m wary of this turning into a list of every terminal application under the sun. Currently, the list includes terminals which distributions are likely to have installed by default. As much as I think Tilix is a cool terminal emulator, I don’t believe it’s installed by any distros by default yet, and it’s even less likely that it’s going to be installed on a system where gnome-terminal isn’t (and hence gnome-terminal will always get picked first by the code).

For that reason, I’m not accepting this. If Tilix is installed by default on distros in future, I’ll be happy to revisit this patch then. :-)  Similarly, if any distros want to carry this as a custom patch in case they want to ship Tilix, that’s something they can certainly do.
Comment 2 Emmanuele Bassi (:ebassi) 2017-08-23 10:50:08 UTC
See also: https://bugzilla.gnome.org/show_bug.cgi?id=627943#c31
Comment 3 Cj Malone 2017-08-23 19:38:00 UTC
Created attachment 358265 [details] [review]
drop xterm check
Comment 4 Cj Malone 2017-08-23 19:38:45 UTC
(In reply to Philip Withnall from comment #1)
> Review of attachment 358093 [details] [review] [review]:
> 
> I’m wary of this turning into a list of every terminal application under the
> sun. Currently, the list includes terminals which distributions are likely
> to have installed by default. As much as I think Tilix is a cool terminal
> emulator, I don’t believe it’s installed by any distros by default yet, and
> it’s even less likely that it’s going to be installed on a system where
> gnome-terminal isn’t (and hence gnome-terminal will always get picked first
> by the code).
> 
> For that reason, I’m not accepting this. If Tilix is installed by default on
> distros in future, I’ll be happy to revisit this patch then. :-)  Similarly,
> if any distros want to carry this as a custom patch in case they want to
> ship Tilix, that’s something they can certainly do.

I'm using Arch, without any of the current list but I can understand that it's a rare case. I've added another patch that drops the check for xterm as you use it even if it's not there.

(In reply to Emmanuele Bassi (:ebassi) from comment #2)
> See also: https://bugzilla.gnome.org/show_bug.cgi?id=627943#c31

Seeing as the the other bug has been open 7 years there is obviously nothing I can add to it. I hope one day there will be a config in $XDG_CONFIG_HOME for a default terminal, it makes sense.

I've used the link suggestion from the other bug as well, it's a shitty, fix but it works.
Comment 5 Philip Withnall 2017-08-23 22:56:02 UTC
Review of attachment 358265 [details] [review]:

That’ll do. Thanks.
Comment 6 Philip Withnall 2017-08-23 22:57:48 UTC
(In reply to Cj Malone from comment #4)
> (In reply to Emmanuele Bassi (:ebassi) from comment #2)
> > See also: https://bugzilla.gnome.org/show_bug.cgi?id=627943#c31
> 
> Seeing as the the other bug has been open 7 years there is obviously nothing
> I can add to it. I hope one day there will be a config in $XDG_CONFIG_HOME
> for a default terminal, it makes sense.

One of the problems of not having enough developers to fix every bug; sorry. It’ll get fixed eventually. If you want to have a shot at fixing it with the approach in comment #31, I’ll be happy to review.
Comment 7 Philip Withnall 2017-11-27 18:50:59 UTC
See bug #790914 for a follow-up fix which was needed for build machines (such as distro package builders) as a result of this change.