I have installed Firefox as deb in a Ubuntu Mantic jail and enabled dbus to communicate with the host
by passing in the DBUS_SESSION_BUS_ADDRESS from the host in a script
this allows desktop notifications from the jailed browser to show up on the host
and mpris to control videos playing in the browser using playerctl on the host
i also used notify-send in the jail with the host dbus session address and the notification appeared on the host
Firefox is run as a native Wayland application on the Freebsd host
which is using labwc as the wayland compositor
Instead of using an Xwayland window which runs an application inside of a single window
Firefox is running a native Wayland application on the host
So you can use picture in picture mode to pop out the video
which isnt possible using an Xwayland window
Firefox is launched using a dektop entry from your application launcher
and is displayed on the host using wayland with the audio routed over a pulseaudio socket from the jail to the host
By editing the mimeapps.list on the host you can also set the jailed firefox to be the default browser
so XDG_OPEN will open links from other applications in the jailed version of firefox
its also possible to mount the downloads directory from the host to the jail as well
nvidia and cuda are also enabled for hardware acceleration
i havent managed to get drm playback to work
ill have to do a write up of all the steps
note i used firefox in the jail to post this thread
screenshots:
firefox playing kylie on youtube with the picture in picture mode
firefox playing kylie on youtube with the picture in picture mode displayed on second monitor
firefox open dialog box showing the home directory in the jail
firefox open dialog box showing the root directory of the jail
by passing in the DBUS_SESSION_BUS_ADDRESS from the host in a script
this allows desktop notifications from the jailed browser to show up on the host
and mpris to control videos playing in the browser using playerctl on the host
i also used notify-send in the jail with the host dbus session address and the notification appeared on the host
Firefox is run as a native Wayland application on the Freebsd host
which is using labwc as the wayland compositor
Instead of using an Xwayland window which runs an application inside of a single window
Firefox is running a native Wayland application on the host
So you can use picture in picture mode to pop out the video
which isnt possible using an Xwayland window
Firefox is launched using a dektop entry from your application launcher
and is displayed on the host using wayland with the audio routed over a pulseaudio socket from the jail to the host
By editing the mimeapps.list on the host you can also set the jailed firefox to be the default browser
so XDG_OPEN will open links from other applications in the jailed version of firefox
its also possible to mount the downloads directory from the host to the jail as well
nvidia and cuda are also enabled for hardware acceleration
i havent managed to get drm playback to work
ill have to do a write up of all the steps
note i used firefox in the jail to post this thread
screenshots:
firefox playing kylie on youtube with the picture in picture mode
firefox playing kylie on youtube with the picture in picture mode displayed on second monitor
firefox open dialog box showing the home directory in the jail
firefox open dialog box showing the root directory of the jail