Arch Linux, Openbox and Desktop

8,900

That's not the right way to initiate a x session with openbox,

Perhaps you meant to put that line in ~/.xinitrc, and execute startx instead.

Remember that an X app can't be run outside the Xorg environment.

Share:
8,900
Mitro
Author by

Mitro

I used computer for the first time when I was 10 and now it's my primary occupation. I like looking at the things I use daily and ask myself questions such as “How it is made?”, “How does it work?”, or "Could I do it better?". Something that "just works" isn't good enough for me. I always want to do the best with everything I use or develop. I like learning and love coding.

Updated on September 18, 2022

Comments

  • Mitro
    Mitro over 1 year

    I' m installing Arch with OpenBox, I' ve done everything but when I type

    openbox-session
    

    I have this error

    Failed to open the display from the DISPLAY environment variable.
    

    What's the problem?

  • Wieland
    Wieland about 11 years
    This covered in more detail at the arch wiki.
  • Mitro
    Mitro about 11 years
    Yes with startx is ok, but why in the wiki there is exec openbox-session ??
  • daisy
    daisy about 11 years
    @AlessioMTX exec would replace the current shell process with the openbox-session process, thus X can know the exit status of it
  • Mitro
    Mitro about 11 years
    @Wieland yes I wrote also in ~/.xinitrc: exec openbox-session
  • Neil
    Neil over 9 years
    Just in case anyone doesn't realise (like me). You need to install xinit to run openbox. sudo apt-get install xinit.