1
0
This commit is contained in:
dtb 2024-05-16 00:23:48 -06:00
parent e537501f34
commit 01fcf0ad07

16
niceties/weisu Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh
set -x
# https://unix.stackexchange.com/a/709811
if test -n "$SUDO"
then command -v doas \
&& SUDO=doas \
|| SUDO=sudo
fi
exec $SUDO env \
WAYLAND_DISPLAY="$XDG_RUNTIME_DIR/$WAYLAND_DISPLAY" \
XDG_RUNTIME_DIR=/user/run/0 \
"$@"