diff options
author | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-08 17:25:54 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-04-08 17:25:54 -0700 |
commit | c1b70ca67ecd12d6837584e7ef4abd01ee3b7ad9 (patch) | |
tree | e6ae9dc1d99eb8e7b43fa92ab50e06711010b8fe | |
parent | 1cb4bb208d481967fb736acf10c6ac2b66bf3181 (diff) |
Correctly handle users with spaces in $HOME
-rw-r--r-- | xinitrc.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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 |