Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Openbox doesn' t start [SOLVED]

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Openbox doesn' t start [SOLVED]

#1 Post by Scorpion »

I use sddm as display manager on Debian 10.
If I choose openbox as GUI it doesn't start.

I closed sddm and I tried to launch it from the tty:

Code: Select all

openbox-session
Openbox-Message: Failed to open the display from the DISPLAY environment variable.
If I use startx it starts GNOME, and that's what I want.

I don't have any ~/.xinitrc file.
Last edited by Scorpion on 2021-04-02 19:11, edited 2 times in total.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Openbox doesn' t start

#2 Post by Head_on_a_Stick »

To (test) launch it from the TTY use

Code: Select all

startx /usr/bin/openbox-session
Check the SDDM logs (or the systemd journal, which should record all messages).
deadbang

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Openbox doesn' t start

#3 Post by Scorpion »

With that command openbox starts.

I now discovered that openbox actually starts but works bad, the screen from sddm remains so it seems to be stuck, and the images of the windows remain:
Image
immagini

I had this problem on my other Debian 10 computer with gdm3 but openbox started with the blackscreen, after some time it was fixed.
I don't know what happened.

How do I check the logs? Or systemd journal?

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Openbox doesn' t start

#4 Post by Head_on_a_Stick »

Scorpion wrote:the screen from sddm remains so it seems to be stuck, and the images of the windows remain
You need to set a wallpaper. Use feh or xsetroot.
Scorpion wrote:How do I check the logs? Or systemd journal?
See journalctl(1). Or ask a search engine.
deadbang

shep
Posts: 423
Joined: 2011-03-15 15:22

Re: Openbox doesn' t start

#5 Post by shep »

I use OpenBox with the xcompmgr compositor started from xdm without issue in Debian 10. sddm accommodates X11 and or Wayland while OpenBox is strictly X11. sddm also leans toward Qt while OpenBox is strictly gtk. I wonder if you are having compositor issues with sddm starting Wayland? OpenBox will not composite with Wayland.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Openbox doesn' t start

#6 Post by Head_on_a_Stick »

shep wrote:OpenBox will not composite with Wayland.
Wayland is just a protocol. Display servers that use the protocol are called compositors because they also act as compositing window managers but Wayland compositors cannot be used in the same way as xcompmgr, compton or picom.
deadbang

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Openbox doesn' t start

#7 Post by Scorpion »

The output of journalctl is huge.
What should I look for?

I set gdm3 as DM and I have the same problem (windows "afterimages") but openbox starts with the black background.

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Openbox doesn' t start

#8 Post by Head_on_a_Stick »

Scorpion wrote:The output of journalctl is huge.
What should I look for?
So you couldn't be bothered reading the man page then?

Code: Select all

journalctl --unit sddm.service
But it works so we don't need to worry about that now.
Scorpion wrote:I set gdm3 as DM and I have the same problem (windows "afterimages") but openbox starts with the black background.
You need to set a wallpaper, as I mentioned earlier.

Install the feh package and use it to open whichever image file you want to use as your desktop background, right-click on the image in feh and select File → Background → Set Filled (or whatever option is required) and add this line to ~/.config/openbox/autostart:

Code: Select all

~/.fehbg
deadbang

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Openbox doesn' t start

#9 Post by Scorpion »

Right I copied the default configs from /etc/xdg/openbox and I added to autostart:

Code: Select all

feh --bg-scale /path-to-wallpaper &

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: Openbox doesn' t start [SOLVED]

#10 Post by Head_on_a_Stick »

Remove the ampersand from the end of the line, it is not needed.

If you use my line you can change the wallpaper by opening the desired image with feh and using the right-click menu options I listed instead of editing the autostart file manually.
deadbang

Post Reply