aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-12-11 11:06:29 -0200
committerSilvio Rhatto <rhatto@riseup.net>2014-12-11 11:06:29 -0200
commit721edea1feb134a5464fab8ad2e573463940e615 (patch)
tree317fca8fb8772df4d7fa198455021fb49b18c2a0
parentd56dcdafe78f0406721ab1d0dadb3620a0b661da (diff)
downloadtimelog-master.tar.gz
timelog-master.tar.bz2
Test xtitle availability on timelog_window_titleHEADmaster
-rwxr-xr-xtimelog4
1 files changed, 3 insertions, 1 deletions
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
}