You are not logged in.

#1 2017-07-11 03:11:22

freaxtux
Member
Registered: 2012-07-17
Posts: 37

systemd-nspawn to run a panel of different distribution

Hello everyone
I've had to run an application which only stably runs on Ubuntu natty(don't ask) and trusty but I wanted to use arch for other things, so I've used systemd-nspawn to run ubuntu on top of arch.
unfortunately, I've recently found it not working as it used to be.

This is the command I used to run xfce4-panel :

	systemd-nspawn -D $MOUNTPOINT --bind=/dev --setenv=DISPLAY=$DISPLAY --setenv=QT_X11_NO_MITSHM=1 -a dbus-launch --exit-with-session /bin/su -l $USERNAME -c 'xfce4-panel --sm-client-disable'

QT_X11_NO_MITSHM=1 is workaround for some qt application
(Honestly, I had some trial-and-error to complete this, so it might not be perfect)

Now it fails with following messages:

(xfce4-panel:7): xfce4-panel-WARNING **: Failed to connect to the D-BUS session bus: Failed to connect to socket /tmp/dbus-6JAeSEMBHS: Connection refused
xfce4-panel: There is already a running instance

it probably is a bit too specific and overcomplicated, but I hope someone knowledgeable could find a answer for me
Thank you for reading.

Offline

Board footer

Powered by FluxBB