From 721edea1feb134a5464fab8ad2e573463940e615 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Thu, 11 Dec 2014 11:06:29 -0200 Subject: Test xtitle availability on timelog_window_title --- timelog | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/timelog b/timelog index c52bfc6..66541df 100755 --- a/timelog +++ b/timelog @@ -23,7 +23,9 @@ function timelog_window_title { if [ -n "$STY" ]; then screen -p $WINDOW -X title "$*" else - xtitle "$*" + if which xtitle &> /dev/null; then + xtitle "$*" + fi fi } -- cgit v1.2.3