Initial commit

This commit is contained in:
2026-02-02 04:50:13 +01:00
commit 5b11698731
22592 changed files with 7677434 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
#!/bin/sh
real_xdg_runtime_dir=$(dirname "${XDG_RUNTIME_DIR}")
real_wayland=${real_xdg_runtime_dir}/${WAYLAND_DISPLAY:-wayland-0}
if [ ! -O "${real_wayland}" ]; then
# On core systems mir-kiosk may also need to create the host XDG_RUNTIME_DIR
if [ ! -O "${real_xdg_runtime_dir}" ]; then
echo waiting for host XDG_RUNTIME_DIR...
until [ -O "${real_xdg_runtime_dir}" ]
do
inotifywait --event create $(dirname "${real_xdg_runtime_dir}") || sleep 4
done
fi
echo waiting for Wayland socket...
until [ -O "${real_wayland}" ]
do
inotifywait --event create $(dirname "${real_wayland}") || sleep 4
done
echo ...waiting done
fi
exec "$@"

View File

@@ -0,0 +1,41 @@
#!/bin/sh
set -x
if [ -z "${XDG_CONFIG_HOME}" ]
then
if [ -z "${HOME}" ]
then XDG_CONFIG_HOME=$SNAP_USER_DATA/.config
else XDG_CONFIG_HOME=${HOME}/.config
fi
fi
if snapctl is-connected audio-playback; then
# Hook up speech-dispatcher
mkdir -p $XDG_RUNTIME_DIR/speech-dispatcher
$SNAP/usr/bin/speech-dispatcher -d -C "$SNAP/etc/speech-dispatcher" -S "$XDG_RUNTIME_DIR/speech-dispatcher/speechd.sock" -m "$SNAP/usr/lib/speech-dispatcher-modules" -t 30
else
echo "WARNING: audio-playback interface not connected, speech and audio will not work."
fi
# Initial setup
if [ ! -f "${XDG_CONFIG_HOME}/scummvm/scummvm.ini" ]; then
mkdir -p ${XDG_CONFIG_HOME}/scummvm/
echo "[scummvm]\n" >> ${XDG_CONFIG_HOME}/scummvm/scummvm.ini
echo "aspect_ratio=true\n" >> ${XDG_CONFIG_HOME}/scummvm/scummvm.ini
echo "gfx_mode=opengl\n" >> ${XDG_CONFIG_HOME}/scummvm/scummvm.ini
echo "[cloud]\nrootpath=/home/${USER}/snap/scummvm/current/.local/share/scummvm" >> ${XDG_CONFIG_HOME}/scummvm/scummvm.ini
fi
# We need to do this for the user that launches scummvm, so
# it can't be done on installation
if [ ! -f "${XDG_CONFIG_HOME}/scummvm/.added-games-bundle" ]; then
touch ${XDG_CONFIG_HOME}/scummvm/.added-games-bundle
if ! grep -E "comi|drascula|dreamweb|lure|myst|queen|sky|sword" ${XDG_CONFIG_HOME}/scummvm/scummvm.ini
then
# Register the bundled games.
$SNAP/usr/local/bin/scummvm -p /usr/share/scummvm/ --recursive --add
fi
fi
exec $SNAP/usr/local/bin/scummvm "$@"

View File

@@ -0,0 +1,13 @@
#!/bin/bash
# By default, we set SDL_VIDEODRIVER to 'wayland'.
if [ -O "$XDG_RUNTIME_DIR/${WAYLAND_DISPLAY:-wayland-0}" ] && [ -e $SNAP_COMMON/wayland.connected ]; then export SDL_VIDEODRIVER=wayland; fi
# Since GNOME doesn't have support for server-side decorations,
# we check if we are running from within a GNOME session, we
# enforce using the x11 backend for XWayland fallback support.
if [[ "$XDG_CURRENT_DESKTOP" =~ "GNOME" ]]; then
export SDL_VIDEODRIVER=x11
fi
exec "$@"