about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorWill Song <incertia9474@gmail.com>2015-01-02 20:05:55 -0600
committerWill Song <incertia9474@gmail.com>2015-01-02 20:05:55 -0600
commit832074de4ad3f78fabf0bb89ab7aad874e0154ab (patch)
treeabb84a6daa5c2c76b51182e4e6ccb2536176cf77 /src
parente4e1d5e29b883d66b2f89c5ed659f07475e9ee5e (diff)
downloadprofani-tty-832074de4ad3f78fabf0bb89ab7aad874e0154ab.tar.gz
fix tests (hopefully) and use /bin/echo to avoid use of builtin shell commands
Diffstat (limited to 'src')
-rw-r--r--src/ui/core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/core.c b/src/ui/core.c
index 35f97b71..be3fd9a4 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -2259,7 +2259,8 @@ ui_clear_win_title(void)
 void
 ui_goodbye_title(void)
 {
-    system("echo -ne \"\033]0;Thanks for using Profanity\007\"");
+    int result = system("/bin/echo -ne \"\033]0;Thanks for using Profanity\007\"");
+    if(result == -1) log_error("Error printing title on shutdown");
 }
 
 void