Как правильно настроить мой файл .xinitrc для запуска диспетчера сеансов openbox

2423
Billy McCloskey

Я установил openbox дважды - один раз с Fink и один раз с MacPorts. Обе установки дают один и тот же результат: startxзавершается диагностикой ошибок из xinit.

У меня есть рабочий .xinitrc для других оконных менеджеров. Как я могу изменить мой .xinitrc для вызова openbox или openbox-session? Страница man для 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 
1

0 ответов на вопрос