]> gitweb.fluxo.info Git - timelog.git/commitdiff
Test xtitle availability on timelog_window_title master
authorSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Dec 2014 13:06:29 +0000 (11:06 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Thu, 11 Dec 2014 13:06:29 +0000 (11:06 -0200)
timelog

diff --git a/timelog b/timelog
index c52bfc6d3d2828e77365b8aef1c00c1b2fe1204c..66541df0e1f2cb52b583b8faef9ec072099d8852 100755 (executable)
--- a/timelog
+++ b/timelog
@@ -23,7 +23,9 @@ function timelog_window_title {
   if [ -n "$STY" ]; then
     screen -p $WINDOW -X title "$*"
   else
   if [ -n "$STY" ]; then
     screen -p $WINDOW -X title "$*"
   else
-    xtitle "$*"
+    if which xtitle &> /dev/null; then
+      xtitle "$*"
+    fi
   fi
 }
 
   fi
 }