You are not logged in.

#1 2012-04-18 18:16:07

greendragons
Member
Registered: 2012-04-16
Posts: 17

[SOLVED]Unable to start openbox-session automaticlly

Hello,
I hvae configured my .xinitrc to start openbox automatically as when i enter startx,
here is my ~/.xinitrc file

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# exec gnome-session
# exec startkde
# exec startxfce4
# ...or the Window Manager of your choice
exec xinit /usr/bin/openbox-session

Im facing two main problems here,
When i do startx, first of all it takes very long time to show desktop and
second  my openbox-session is not starting, it only starts X without dm(i.e openbox)....

Also if i direclty try to start dm using
$>openbox-session
it gives 
Openbox-Message: Failed to open the display from the DISPLAY environment variable.

The only case i can start my openbox is using
$>xinit /usr/bin/openbox-session...

Why it is so that i cannot start using direct command openbox-session and why no it is started from my ~/.xinitrc file...
Thnx!

Last edited by greendragons (2012-04-18 18:38:22)

Offline

#2 2012-04-18 18:23:37

Pres
Member
Registered: 2011-09-12
Posts: 423

Re: [SOLVED]Unable to start openbox-session automaticlly

Why are you using:

exec xinit /usr/bin/openbox-session

in .xinitrc?

https://wiki.archlinux.org/index.php/Op … d-alone_WM

Offline

#3 2012-04-18 18:32:36

greendragons
Member
Registered: 2012-04-16
Posts: 17

Re: [SOLVED]Unable to start openbox-session automaticlly

Pres wrote:

Why are you using:

exec xinit /usr/bin/openbox-session

in .xinitrc?

https://wiki.archlinux.org/index.php/Op … d-alone_WM

Thnx!! i just changed that line to
exec openbox-session and it worked..
I figured out what was wrong.. As i cannot start openbox before X, that is why i cannot start openbox-session from console directly, using
>openbox-session
i guess that is why is said display variable not set...

Offline

Board footer

Powered by FluxBB