diff --git a/bin/waylectron b/bin/waylectron index c866734..4c38092 100755 --- a/bin/waylectron +++ b/bin/waylectron @@ -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