Protection contre les erreurs

This commit is contained in:
Hippolyte CHAUVIN 2023-05-02 11:18:23 +02:00
parent ff296935c5
commit 8a91705b26

View file

@ -1,6 +1,6 @@
#!/bin/sh
program="$(basename "$0")"
PATH="$(echo "$PATH" | sed 's|'"$(which "$program" | xargs dirname)"'||g' | sed 's/^://g' | sed 's/::/:/g')"
PATH="$(echo "$PATH" | sed 's|'"$(which "$program" | tr '\n' '\0' | xargs -0 dirname)"'||g' | sed 's/^://g' | sed 's/::/:/g')"
exec "$program" \
"$@" \
--ozone-platform-hint=wayland