From ff296935c5ea6872e137307522033366fd75a4c6 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Mon, 1 May 2023 21:44:29 +0200 Subject: [PATCH] =?UTF-8?q?R=C3=A9=C3=A9criture=20du=20programme=20waylect?= =?UTF-8?q?ron?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/waylectron | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/waylectron b/bin/waylectron index f9d64aa..c866734 100755 --- a/bin/waylectron +++ b/bin/waylectron @@ -1,6 +1,7 @@ #!/bin/sh -PATH="$(echo "$PATH" | cut -d ':' -f 2-)" -exec "$(basename "$0")" \ +program="$(basename "$0")" +PATH="$(echo "$PATH" | sed 's|'"$(which "$program" | xargs dirname)"'||g' | sed 's/^://g' | sed 's/::/:/g')" +exec "$program" \ "$@" \ - --ozone-platform-hint=auto + --ozone-platform-hint=wayland