wayland-headless: Ignore option parameters

This commit is contained in:
Mikael 2024-08-31 00:06:13 +02:00
parent 0346c562ee
commit 069f047cf5
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -6,7 +6,10 @@ set -o pipefail
# Discard all options
while [[ "$1" =~ ^- ]]; do
shift
case "$1" in
(-e|-f|-n|-p|-s|-w) shift ;&
(*) shift ;;
esac
done
exec '@out@/bin/wl-run' "$@"