weisu
This commit is contained in:
parent
e537501f34
commit
01fcf0ad07
16
niceties/weisu
Executable file
16
niceties/weisu
Executable 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 \
|
||||
"$@"
|
Loading…
Reference in New Issue
Block a user