[openbox] _OB_APP_* not populated

Jakub Piskorz jakub.piskorz at thaumatec.com
Wed Jul 11 05:31:51 EDT 2018


Hello,

I'm trying to run openbox on a custom buildroot based system. Window
manager seems to start fine, I can launch apps like xterm or custom
xcb apps. And I can change rc.xml to modify appearance (like contents of
the title bar).

But I'm not able to customize application look because filters are not
matched. When I'm checking obxprop, the _OB_APP_* variables are not
populated:

# DISPLAY=:0 obxprop --id 8388621
WM_STATE(WM_STATE) = 1, 0
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_ALLOWED_ACTIONS(ATOM) = _NET_WM_ACTION_CHANGE_DESKTOP,
_NET_WM_ACTION_SHADE, _NET_WM_ACTION_CLOSE, _NET_WM_ACTION_MOVE,
_NET_WM_ACTION_MINIMIZE, _NET_WM_ACTION_RESIZE, _NET_WM_ACTION_FULLSCREEN,
_NET_WM_ACTION_MAXIMIZE_HORZ, _NET_WM_ACTION_MAXIMIZE_VERT,
_NET_WM_ACTION_ABOVE, _NET_WM_ACTION_BELOW, _OB_WM_ACTION_UNDECORATE
_KDE_NET_WM_FRAME_STRUT(CARDINAL) = 1, 1, 18, 5
_NET_FRAME_EXTENTS(CARDINAL) = 1, 1, 18, 5
_NET_WM_STATE(ATOM) =
_OB_APP_TYPE(UTF8_STRING) = "normal"
_OB_APP_TITLE(UTF8_STRING) = "Unnamed Window"
_OB_APP_GROUP_CLASS(UTF8_STRING) =
_OB_APP_GROUP_NAME(UTF8_STRING) =
_OB_APP_CLASS(UTF8_STRING) =
_OB_APP_NAME(UTF8_STRING) =
_OB_APP_ROLE(UTF8_STRING) =
_NET_WM_VISIBLE_ICON_NAME(UTF8_STRING) = "Unnamed Window"
_NET_WM_VISIBLE_NAME(UTF8_STRING) = "Unnamed Window"
WM_PROTOCOLS(ATOM) = WM_DELETE_WINDOW
_NET_WM_PID(CARDINAL) = 2524
WM_CLIENT_LEADER(WINDOW) = 8388621
WM_LOCALE_NAME(STRING) = "C"
WM_CLASS(STRING) = "xterm", "XTerm"
WM_HINTS(WM_HINTS) = 39, 1, 1, 8388626, 0, 0, 0, 8388628, 0
WM_NORMAL_HINTS(WM_SIZE_HINTS) = 856, 0, 0, 484, 316, 10, 17, 0, 0, 6, 13,
0, 0, 0, 0, 4, 4, 1
WM_CLIENT_MACHINE(STRING) = "nuc"
WM_COMMAND(STRING) = "xterm"
WM_ICON_NAME(STRING) = "xterm"
WM_NAME(STRING) = "xterm"

(I do not have mouse there, so I need to run obxprop with --id param).

Googling that issue yields literally no results, all options are for
filtering rc.xml based on valid _OB_APP_NAME...

I have no idea what is going on so I'll attach all info which may be
relevant:

I'm starting openbox directly from xinitrc, which is triggered by
startx command launched by systemd.

Here is my startx unit file:

# cat /etc/systemd/system/multi-user.target.wants/x.service
[Unit]
After=systemd-user-sessions.service

[Service]
ExecStart=/bin/startx -- -nolisten tcp -s off -dpms -nocursor vt1

[Install]
WantedBy=multi-user.target

System has only root account. Xterm is started through
/etc/xdg/openbox/autostart.

Here is xinitrc:

# cat /etc/X11/xinit/xinitrc
#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge $sysresources
fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"
fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

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

feh --no-fehbg --image-bg black --bg-center /usr/share/ui/logo.png &
exec openbox-session

Please, I'm pulling my hair off with this, any help will be appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/openbox/attachments/20180711/b442d03b/attachment.html>


More information about the openbox mailing list