8 lines
343 B
Bash
Executable File
8 lines
343 B
Bash
Executable File
#!/bin/bash
|
|
# This script allows running a command as the contestant user, with environment
|
|
# variables for that user. This allows e.g. running graphical commands.
|
|
set -o allexport
|
|
XDG_RUNTIME_DIR="/run/user/$(id -u contestant)"
|
|
eval "$(runuser -u contestant -- systemctl --user show-environment)"
|
|
exec /usr/sbin/runuser -u contestant -- "$@"
|