jlesage / docker-baseimage-gui

A minimal docker baseimage to ease creation of X graphical application containers
MIT License
1.2k stars 179 forks source link

[Feature Request] Add casting of xserver support #108

Open ThaDaVos opened 1 year ago

ThaDaVos commented 1 year ago

I am currently looking into a way to extend on this image to add casting support, for example automatic casting to a Miracast adapter (compatible device) (or Chromecast).

Is this something you've looked into? Maybe up front know if even would be possible with your base image?

I see there are already some projects for it out there for linux: https://gitlab.gnome.org/GNOME/gnome-network-displays https://github.com/albfan/miraclecast/issues/4

So, maybe we can look into this together perhaps even

ThaDaVos commented 1 year ago

I just went with it, and I can get it working till the point the gnome-netwerk-displays is booted - sadly I need a real Linux machine (not Windows with WSL) to actually test it:

# Pull base image.
FROM jlesage/baseimage-gui:ubuntu-22.04-v4

RUN add-pkg --virtual program-dependencies \
    desktop-file-utils \
    appstream-util

RUN add-pkg --virtual build-dependencies \
    build-essential \
    gettext \
    libgstreamer-plugins-base1.0-dev \
    libgtk-3-dev \
    libgstrtspserver-1.0-dev \
    libnm-dev \
    libprotobuf-c-dev \
    libjson-glib-dev \
    libsoup-3.0-dev \
    libavahi-client-dev \
    libavahi-gobject-dev \
    libpulse-mainloop-glib0 \
    libpulse-dev \
    cmake \
    meson

COPY /gnome-network-displays /build

WORKDIR /build

RUN meson build
RUN meson install -C build

# Copy the start script.
COPY startapp.sh /startapp.sh

# Set the name of the application.
RUN set-cont-env APP_NAME "GNOME Network Display"
#!/bin/sh
exec /usr/local/bin/gnome-network-displays