Unable to customize terminal used to launch applications with Terminal=true
Desktop files allow setting Terminal=true. This is great for applications such as vim, emacs, etc. that are run in a terminal. However, the code for g_app_info_launch_uris
does not have any way for the user to customize which terminal which is used. The prepend_terminal_to_vector
function (https://gitlab.gnome.org/GNOME/glib/blob/master/gio/gdesktopappinfo.c#L2515) has a hard coded set of terminals it searches in a predetermined order. My terminal of choice (kitty) is not in that list. As a result, applications which use g_app_info_launch_uris and it's derivatives launch terminal applications in an undesired application.
My suggestion is to have an environment variable that is checked first (for example TERMINAL), and if set, uses that as the terminal.