From c1b70ca67ecd12d6837584e7ef4abd01ee3b7ad9 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 8 Apr 2008 17:25:54 -0700 Subject: Correctly handle users with spaces in $HOME --- xinitrc.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xinitrc.cpp') diff --git a/xinitrc.cpp b/xinitrc.cpp index 89a65ca..5643340 100644 --- a/xinitrc.cpp +++ b/xinitrc.cpp @@ -24,20 +24,20 @@ if [ -f $sysmodmap ]; then XMODMAP $sysmodmap fi -if [ -f $userresources ]; then +if [ -f "$userresources" ]; then #ifdef __APPLE__ if [ -x /usr/bin/cpp ] ; then - XRDB -merge $userresources + XRDB -merge "$userresources" else - XRDB -nocpp -merge $userresources + XRDB -nocpp -merge "$userresources" fi #else - XRDB -merge $userresources + XRDB -merge "$userresources" #endif fi -if [ -f $usermodmap ]; then - XMODMAP $usermodmap +if [ -f "$usermodmap" ]; then + XMODMAP "$usermodmap" fi XCOMM start some nice programs -- cgit v1.2.3