From 8a91705b26761817942f8e3b01e0456fe1ed71e7 Mon Sep 17 00:00:00 2001 From: Hippolyte CHAUVIN Date: Tue, 2 May 2023 11:18:23 +0200 Subject: [PATCH] Protection contre les erreurs --- bin/waylectron | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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