Only run xmodmap in .xinitrc if you have the executable installed in your PATH.
authorW. Trevor King <wking@drexel.edu>
Thu, 1 Dec 2011 18:02:21 +0000 (13:02 -0500)
committerW. Trevor King <wking@drexel.edu>
Thu, 1 Dec 2011 18:02:21 +0000 (13:02 -0500)
src/.xinitrc [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 9e5775a..678fcc3
@@ -15,6 +15,8 @@ if [ -e /usr/bin/asus_acpid ]; then
 fi
 
 # Set up keybindings
-xmodmap ~/.Xmodmap
+if [ -n $(which xmodmap) ]; then
+       xmodmap ~/.Xmodmap
+fi
 
 exec startfluxbox