You are not logged in.
My fresh install of openbox has a default black background instead of grey. Has the default color changed upstream or is this packaged modified by arch to be black?
Last edited by soaringowl2145 (2017-06-25 14:38:25)
Offline
Since when did Openbox come with any default background? Did you also install obconf/lxappearance-obconf?
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn
Offline
Openbox doesn't have a wallpaper, nor does it set the root window color. Openbox-session might run some other processes that do - but if you want to set the root window color, just use xsetroot.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I think I know what the OP is alluding to. I just removed the feh wallpaper setting from my openbox/autostart and upon restart, you do get a dark grey background still. I haven't done a fresh install of openbox for quite awhile but it's always had that dark grey screen on first start-up until you set the wallpaper or color with some tool like xsetroot or feh, etc. so I don't think anything has changed.
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
I can't replicate that. I just installed openbox, and have no configs for it, and it starts up with a black background exactly like if I start without a WM. It's just the X11 root window, that's all.
I also checked the openbox code - there is nothing there that sets a color to the root window.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
The /usr/lib/openbox/openbox-autostart file has this:
# Set a background color
BG=""
if which hsetroot >/dev/null 2>/dev/null; then
BG=hsetroot
elif which esetroot >/dev/null 2>/dev/null; then
BG=esetroot
elif which xsetroot >/dev/null 2>/dev/null; then
BG=xsetroot
fi
test -z $BG || $BG -solid "#303030"
The file, or that snippet, is exactly the same as upstream. #303030 looks pretty grey to me.
Offline
Hence my saying openbox and openbox-session are different. Openbox does not run that file - only openbox-session does. This is even clearly described in our wiki page on openbox - that page even explicitly mentions when and how the background color is set.
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Like I said, it's been a long time since I installed my present openbox setup, likely after changing from Alopex--remember that one Trilby--and when I checked my .xinitrc, I see I have exec openbox-session, so I guess that explains that.
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
Thanks for helping.
Offline
So, if I am reading this correctly since I am using openbox-session, the wallpaper should be grey rather than black, right? Is this a bug?
Offline
I wouldn't call it a bug as most users change their background one way or another to suite their own preference so what it starts off with is seemingly irrelevant.
Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz
Offline
That autostart script checks for either hsetroot, esetroot or xsetroot. If you have any of those installed, the script will run them to turn the background grey. If you don't have them installed, no new background will be set, so it remains black. Quite logical really. So no bug, just conditional behavior, exactly as specified by the script.
Offline
That autostart script checks for either hsetroot, esetroot or xsetroot. If you have any of those installed, the script will run them to turn the background grey. If you don't have them installed, no new background will be set, so it remains black. Quite logical really. So no bug, just conditional behavior, exactly as specified by the script.
Thank you for this explanation! I installed the package xorg-xsetroot and I now get the default behavior for making the background grey.
This issue is now solved!
Offline