Closed CicadaSeventeen closed 2 years ago
It seems that dbus plays an important role for things like xfce. However, --dbus option is not used in x11docker for it. I wonder why.
dbus
in Xfce is needed if starting Xfce applications in Wayland. Fo example x11docker --wayland x11docker/xfce xfce4-terminal
will use dbus internally. I assume that dbus
is also started by startxfce4
, though I did not check that.
Mate will at least use dbus if started with option --init=systemd
.
Basically dbus serves for communication between processes.
So I think mate and xfce can work without --dbus
. The absent of dbus service does not make fatal error, so you do not use --dbus
option in your examples. On the other hand, Gnome and Cinnamon will crash without dbus. However, for mate and xfce, some function of them may need --dbus
.
Is my understanding basically correct ?
Is my understanding basically correct ?
Yes.
Option --dbus
is rarely needed directly. Most often desktops run dbus
themself if they need it.
I wonder whether things like
xfce
ormate
needdbus
. In the examples ofx11docker
,xfce
andmate
do not use--dbus
or--hostdbus
option asgnome
does. It seems that they do not rely ondbus
. On the other hand,dbus-x11
is installed in your image, which indicates thatdbus
is needed.When I tried to test containers by
chroot
, I found not onlyxfce
andmate
, but even likefirefox
andchromium
failed to start. Meanwhile, smaller GUI programmes likexterm
orthunar
worked.mate
error info told me it is adbus
problem, some experienced guy suggested me to checkdebus
too. So I tried to useunset DBUS_SESSION_BUS_ADDRESS
before starting programmes. (env
is from host system) Then everything became OK. I can use Firefox now andxfce
ormate
work.It seems that
dbus
plays an important role for things likexfce
. However,--dbus
option is not used inx11docker
for it. I wonder why.