Add patch to allow launching terminal applications with Ptyxis
Resolves: RHEL-60786
This commit is contained in:
parent
335e7f5e9a
commit
d05bc5c500
33
default-terminal.patch
Normal file
33
default-terminal.patch
Normal file
@ -0,0 +1,33 @@
|
||||
diff --git a/gio/gdesktopappinfo.c b/gio/gdesktopappinfo.c
|
||||
index 343f30949..48467d189 100644
|
||||
--- a/gio/gdesktopappinfo.c
|
||||
+++ b/gio/gdesktopappinfo.c
|
||||
@@ -2700,6 +2700,7 @@ prepend_terminal_to_vector (int *argc,
|
||||
const char *exec_arg;
|
||||
} known_terminals[] = {
|
||||
{ "xdg-terminal-exec", NULL },
|
||||
+ { "ptyxis", "--" },
|
||||
{ "kgx", "-e" },
|
||||
{ "gnome-terminal", "--" },
|
||||
{ "mate-terminal", "-x" },
|
||||
diff --git a/gio/tests/desktop-app-info.c b/gio/tests/desktop-app-info.c
|
||||
index c16e15a71..e9bd06031 100644
|
||||
--- a/gio/tests/desktop-app-info.c
|
||||
+++ b/gio/tests/desktop-app-info.c
|
||||
@@ -1401,6 +1401,8 @@ get_terminal_divider (const char *terminal_name)
|
||||
{
|
||||
if (g_str_equal (terminal_name, "xdg-terminal-exec"))
|
||||
return NULL;
|
||||
+ if (g_str_equal (terminal_name, "ptyxis"))
|
||||
+ return "--";
|
||||
if (g_str_equal (terminal_name, "kgx"))
|
||||
return "-e";
|
||||
if (g_str_equal (terminal_name, "gnome-terminal"))
|
||||
@@ -1923,6 +1925,7 @@ main (int argc,
|
||||
guint i;
|
||||
const gchar *supported_terminals[] = {
|
||||
"xdg-terminal-exec",
|
||||
+ "ptyxis",
|
||||
"kgx",
|
||||
"gnome-terminal",
|
||||
"mate-terminal",
|
@ -12,6 +12,9 @@ Source: https://download.gnome.org/sources/glib/2.80/glib-%{version}.tar
|
||||
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/903
|
||||
Patch: gnutls-hmac.patch
|
||||
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=2192204
|
||||
Patch: default-terminal.patch
|
||||
|
||||
# https://gitlab.gnome.org/GNOME/glib/-/merge_requests/4155
|
||||
Patch: 4155.patch
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user