summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2020-09-12 17:40:01 +0200
committerBoris Faure <billiob@gmail.com>2020-09-12 17:43:16 +0200
commita05db782395468d0871c59be99646bf44351c9c2 (patch)
treec5c426228d5f4654b5551308d1f3419531aea600
parentc2bb4dcf81e641306212e318240d67c0602f9817 (diff)
termpty: make provided title as forced title
-rw-r--r--src/bin/termpty.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 7736cec..dcf9056 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,
630 arg0 = strrchr(args[0], '/'); 630 arg0 = strrchr(args[0], '/');
631 if (!arg0) arg0 = args[0]; 631 if (!arg0) arg0 = args[0];
632 else arg0++; 632 else arg0++;
633 ty->prop.title = eina_stringshare_add(title? title : arg0); 633
634 if (title)
635 {
636 ty->prop.title = eina_stringshare_add(title);
637 ty->prop.user_title = eina_stringshare_add(title);
638 }
639 else
640 ty->prop.title = eina_stringshare_add(arg0);
634 641
635 ty->fd = posix_openpt(O_RDWR | O_NOCTTY); 642 ty->fd = posix_openpt(O_RDWR | O_NOCTTY);
636 if (ty->fd < 0) 643 if (ty->fd < 0)