forked from hzoo/TwitchPlaysX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartapp.sh
More file actions
executable file
·25 lines (21 loc) · 869 Bytes
/
startapp.sh
File metadata and controls
executable file
·25 lines (21 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh
set -eu
# docker run parameters for pulseaudio
# --group-add "$(getent group audio | cut -d: -f3)"
# -e "PULSE_SERVER=unix:${XDG_RUNTIME_DIR}/pulse/native"
# -v "${XDG_RUNTIME_DIR}/pulse/native/:${XDG_RUNTIME_DIR}/pulse/native"
# -v "${HOME}/.config/pulse/cookie:/tmp/pulseaudio_cookie"
PULSEAUDIO_COOKIE_TMP_MOUNT_PATH=/data/pulseaudio_cookie
VBAM_CONFIG_TMP_MOUNT_PATH=/data/vbam_conf
# USER_NAME=user
#
# useradd -u "${HOST_UID}" -o -m "${USER_NAME}"
# groupmod -g "${HOST_GID}" "${USER_NAME}"
#
# chown -R "${USER_NAME}:${USER_NAME}" /vbam
#
# gosu "${USER_NAME}" mkdir -p "/home/${USER_NAME}/.config/pulse"
# cp "${PULSEAUDIO_COOKIE_TMP_MOUNT_PATH}" "/home/${USER_NAME}/.config/pulse/cookie"
# cp -r "${VBAM_CONFIG_TMP_MOUNT_PATH}" "/home/${USER_NAME}/.config/visualboyadvance-m"
# gosu "${USER_NAME}" visualboyadvance-m "$@"
exec visualboyadvance-m