diff --git a/install.sh b/install.sh index 88cafae..709770a 100755 --- a/install.sh +++ b/install.sh @@ -184,6 +184,16 @@ install_dependencies() { runtime="" ;; esac + # Wayland: native Wayland games reach the engine through the ScreenCast portal and GStreamer's PipeWire plugin + # (gst-launch-1.0 pipewiresrc). Package names checked on Arch only; the others are each distro's usual names. + if [ "$SESSION_TYPE" = wayland ] && [ -n "$runtime" ]; then + case "$DISTRO_FAMILY" in + arch) runtime="$runtime gstreamer gst-plugins-base gst-plugin-pipewire" ;; + debian) runtime="$runtime gstreamer1.0-tools gstreamer1.0-plugins-base gstreamer1.0-pipewire" ;; + fedora) runtime="$runtime gstreamer1 gstreamer1-plugins-base pipewire-gstreamer" ;; + opensuse) runtime="$runtime gstreamer-utils gstreamer-plugins-base gstreamer-plugin-pipewire" ;; + esac + fi if [ -n "$runtime" ]; then step "Installing the tools Summit runs (a failure here only disables a feature)" # shellcheck disable=SC2086