about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-01-03 01:35:27 +0000
committerJames Booth <boothj5@gmail.com>2015-01-03 01:35:27 +0000
commitad1460626f368e6bbd0903b7da6d3db37e5e2fe3 (patch)
treeb76fbca018f13fb219b3c1409847a8d94dcf0e05
parent90b851c8483f4be3c7efb96a8324502958218f3a (diff)
downloadprofani-tty-ad1460626f368e6bbd0903b7da6d3db37e5e2fe3.tar.gz
Use /bin/echo for terminal window title
-rw-r--r--src/ui/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index bd5f063d..2e8ae9ff 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -2274,15 +2274,15 @@ _ui_draw_term_title(void)
 
         if (unread != 0) {
             snprintf(new_win_title, sizeof(new_win_title),
-                "echo -n \"%c]0;%s (%d) - %s%c\"", '\033', "Profanity",
+                "/bin/echo -n \"%c]0;%s (%d) - %s%c\"", '\033', "Profanity",
                 unread, jid, '\007');
         } else {
             snprintf(new_win_title, sizeof(new_win_title),
-                "echo -n \"%c]0;%s - %s%c\"", '\033', "Profanity", jid,
+                "/bin/echo -n \"%c]0;%s - %s%c\"", '\033', "Profanity", jid,
                 '\007');
         }
     } else {
-        snprintf(new_win_title, sizeof(new_win_title), "echo -n \"%c]0;%s%c\"", '\033',
+        snprintf(new_win_title, sizeof(new_win_title), "/bin/echo -n \"%c]0;%s%c\"", '\033',
             "Profanity", '\007');
     }
     if (g_strcmp0(win_title, new_win_title) != 0) {