diff --git a/debian/client/usr/bin/minecraft-pi b/debian/client/usr/bin/minecraft-pi index 5172c8c..47c33a9 100755 --- a/debian/client/usr/bin/minecraft-pi +++ b/debian/client/usr/bin/minecraft-pi @@ -17,7 +17,7 @@ VIRGL_PID="$!" # Ensure Groups Are Correct if [ -z "${MCPI_SUBSHELL}" ]; then if ! id -Gn "$(whoami)" | grep '\bdocker\b' > /dev/null; then - pkexec usermod -aG "$(whoami)" docker + pkexec usermod -aG docker "$(whoami)" fi exec sg docker "env MCPI_SUBSHELL=1 \"$(realpath -e "$0")\"" fi @@ -34,4 +34,4 @@ RET="$?" # Kill VirGL kill "${VIRGL_PID}" -ecit "${RET}" +exit "${RET}" diff --git a/mods/src/compat.c b/mods/src/compat.c index bc28a7f..0b5ad6f 100644 --- a/mods/src/compat.c +++ b/mods/src/compat.c @@ -466,7 +466,7 @@ HOOK(eglTerminate, EGLBoolean, (__attribute__((unused)) EGLDisplay display)) { // Use VirGL __attribute__((constructor)) static void init() { is_server = extra_get_is_server(); - setenv("LIBGL_ALWAYS_SOFTWARE", "1", 1); + setenv("LIBGL_ALWAYS_SOFTWARE", "1", 1); if (!is_server) { setenv("GALLIUM_DRIVER", "virpipe", 1); }