Botspot / vdesktop

Run a second instance of Raspbian inside Raspbian.
GNU General Public License v3.0
125 stars 21 forks source link

Hopes for RPi OS Bullseye #42

Open Jai-JAP opened 2 years ago

Jai-JAP commented 2 years ago

Recently I have been through this repo which has a guide regarding How to set up your nested Wayland Desktop Environment with systemd-nspawn container, like VirtualBox.

I don't know if it works on X11 and/or GTK based systems as it uses KWin (a part ot KDE) but there are high hopes that this will help running mutter (RPi OS Bullseye) on vdesktop.

Jai-JAP commented 2 years ago

I still have to test the above setup but if it works, (fingers crossed) I would suggest to move on from Xephyr to Kwin for vdesktop, as it supports both X11 & Wayland protocols opposed to Xephyr which only supports X11. And support for Wayland has mutter support for RPi OS Bullseye.

Botspot commented 2 years ago

Very interesting. Thanks for the link.

I was not able to get kwin_wayland running, but this issue mentions that the mutter window manager also has a nested mode! As we're already using Mutter, I think that it has a better chance of working.

pi@raspberrypi:~ $ export $(dbus-launch)
pi@raspberrypi:~ $ mutter --nested
Window manager warning: Failed to set environment variable GNOME_SETUP_DISPLAY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist
Window manager warning: Failed to set environment variable DISPLAY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist
Window manager warning: Failed to set environment variable XAUTHORITY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist
Window manager warning: Failed to set environment variable WAYLAND_DISPLAY for gnome-session: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist
Botspot commented 2 years ago

I got it working!

export $(dbus-launch)
mutter --nested --wayland -d :1 &
export DISPLAY=:1
lxterminal

In the above example, a terminal should open inside the nested xwayland session!