aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-06-27 17:09:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-06-27 17:09:20 -0300
commit6bd938acf6f2db0e95e8714e4a8bd13087c0deb0 (patch)
tree8144927926e02d6ac651153c83476c798da86b05
parent009104e47b8231eb51cbf6f9aa743bfeac5cc61f (diff)
downloadprofile-6bd938acf6f2db0e95e8714e4a8bd13087c0deb0.tar.gz
profile-6bd938acf6f2db0e95e8714e4a8bd13087c0deb0.tar.bz2
Check if xscreensaver is available
-rwxr-xr-xxsession.dot.link4
1 files changed, 3 insertions, 1 deletions
diff --git a/xsession.dot.link b/xsession.dot.link
index 9b084a0..97b0dcd 100755
--- a/xsession.dot.link
+++ b/xsession.dot.link
@@ -19,7 +19,9 @@ HOSTNAME="`cat /etc/hostname`"
. $HOME/.profile
# Start xscreensaver
-xscreensaver -no-splash &
+if [ -e "/usr/bin/xscreensaver" ]; then
+ xscreensaver -no-splash &
+fi
# Custom
if [ -e "$HOME/.custom/xsession" ]; then