我安装过两次 openbox - 一次用 Fink,一次用 MacPorts。两次安装的结果都一样: startx
以 xinit 的错误诊断结果终止。
我有一个适用于其他各种窗口管理器的 .xinitrc。如何修改我的 .xinitrc 来调用 openbox 或 openbox-session?openbox 的手册页似乎表明这是可行的,但我无法理解语法。
调用 startx 时我收到的错误诊断是
whmcclos@mbp:~
[38] startx
font_cache: Scanning user font directories to generate X11 font caches
font_cache: Updating FC cache
font_cache: Done
xauth: file /Users/whmcclos/.serverauth.5834 does not exist
/opt/X11/bin/xinit: XFree86_VT property unexpectedly has 0 items instead of 1
Openbox-Message: Invalid button "A-Left" in mouse binding
Openbox-Message: Invalid button "A-Middle" in mouse binding
Openbox-Message: Unable to find a valid config file, using some simple defaults
ObRender-Message: Unable to load the theme 'Clearlooks'
Openbox-Message: Unable to load a theme.
/opt/X11/bin/xinit: connection to X server lost
waiting for X server to shut down
这是我的工作 .xinitrc - 当我注释掉exec openbox-session
并取消注释该行时它可以工作#e16
:
[40] cat .xinitrc
#!/bin/sh
# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
source ~/.profile
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/X11/lib/X11/xinit/.Xresources
sysmodmap=/usr/X11/lib/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
if [ -x /usr/bin/cpp ] ; then
xrdb -merge $sysresources
else
xrdb -nocpp -merge $sysresources
fi
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
if [ -x /usr/bin/cpp ] ; then
xrdb -merge "$userresources"
else
xrdb -nocpp -merge "$userresources"
fi
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
# start some nice programs
xrdb -load $HOME/.Xresources
xsetroot -solid gray &
xclock -g 50x50-0+0 -bw 0 &
xload -g 50x50-50+0 -bw 0 &
gnome-terminal --geometry=80x25+90+90 &
gnome-terminal --geometry=80x25+90-90 &
#gnome-wm
#twm
#quartz-wm
#mwm
#e16
exec openbox-session