Re: problem with /etc/X11/xinit/xinitrc

2005-03-30 Thread Alexander Gottwald
Eyal Rozenberg wrote:

 Many of the variables used in /etc/X11/xinit/xinitrc must be placed
 within double quotes, otherwise home directory names with spaces are not
 handled properly, e.g. /home/Some One/ is treated as two separate tokens
 on the command line. I suggest the following :

I'll add it to the next startup scripts release

bye
ago
-- 
 [EMAIL PROTECTED]
 http://www.gotti.org   ICQ: 126018723


problem with /etc/X11/xinit/xinitrc

2005-03-29 Thread Eyal Rozenberg
Many of the variables used in /etc/X11/xinit/xinitrc must be placed
within double quotes, otherwise home directory names with spaces are not
handled properly, e.g. /home/Some One/ is treated as two separate tokens
on the command line. I suggest the following :

---
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11R6/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11R6/lib/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi

if [ -f $userresources ]; then
xrdb -merge $userresources
fi

if [ -f $usermodmap ]; then
xmodmap $usermodmap
fi

# start some nice programs

exec xterm -sl 1000 -sb -rightbar -ms red -fg yellow -bg black -e
/usr/bin/bash -l
---

Eyal Rozenberg

PS - This may also be an issue with some other scripts.