diff --git a/run.sh b/run.sh index 1ff6bb0..0b1f2d3 100755 --- a/run.sh +++ b/run.sh @@ -3,10 +3,11 @@ BASEDIR="$(dirname $(realpath -s $0))" mkdir -p "$HOME/.local/share/osu" "$BASEDIR/import" -docker run \ +podman run \ --rm \ -it \ --name osu \ + --userns="keep-id:uid=$(id -u),gid=$(id -g)" \ --device /dev/dri \ --group-add $(getent group audio|cut -d: -f3) \ --group-add $(getent group video|cut -d: -f3) \ @@ -14,9 +15,9 @@ docker run \ -e PULSE_SERVER=/run/user/$(id -u)/pulse/native \ -e WAYLAND_DISPLAY \ -e XDG_RUNTIME_DIR \ - -v "$HOME/.local/share/osu/:/home/osu/osu/" \ + -v "$HOME/.local/share/osu/:/home/osu/.local/share/osu/" \ -v "$BASEDIR/import/:$BASEDIR/import/" \ -v "$HOME/.config/pulse/cookie:/run/pulse/cookie" \ -v "${XDG_RUNTIME_DIR}:${XDG_RUNTIME_DIR}" \ - r.sbruder.de/osu \ + osu \ $@