From a05db782395468d0871c59be99646bf44351c9c2 Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Sat, 12 Sep 2020 17:40:01 +0200 Subject: [PATCH] termpty: make provided title as forced title --- src/bin/termpty.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/bin/termpty.c b/src/bin/termpty.c index 7736cec9..dcf9056f 100644 --- a/src/bin/termpty.c +++ b/src/bin/termpty.c @@ -630,7 +630,14 @@ termpty_new(const char *cmd, Eina_Bool login_shell, const char *cd, arg0 = strrchr(args[0], '/'); if (!arg0) arg0 = args[0]; else arg0++; - ty->prop.title = eina_stringshare_add(title? title : arg0); + + if (title) + { + ty->prop.title = eina_stringshare_add(title); + ty->prop.user_title = eina_stringshare_add(title); + } + else + ty->prop.title = eina_stringshare_add(arg0); ty->fd = posix_openpt(O_RDWR | O_NOCTTY); if (ty->fd < 0)