From dbf295355d9a6224d0ef766a7f7cde742053b177 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Thu, 16 Nov 2023 10:13:50 +0100 Subject: [PATCH] =?UTF-8?q?waylectron=20:=20r=C3=A9-=C3=A9criture?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/waylectron | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/waylectron b/bin/waylectron index b387a77..3d166ac 100755 --- a/bin/waylectron +++ b/bin/waylectron @@ -1,8 +1,8 @@ #!/bin/bash -program="$(basename "$0")" -readarray -t wayland_args < ~/.config/electron-flags.conf -PATH="$(echo "$PATH" | sed "s|$(dirname "$(which "$program")")||g" | sed 's/^://g' | sed 's/::/:/g')" -exec "$program" \ - "${wayland_args[@]}" \ - "$@" +name=$(basename "$0") +path=$(dirname "$0") +mapfile wayland_args < ~/.config/electron-flags.conf +PATH=$(echo "$PATH" | sed "s|$path||g" | sed 's/^://' | sed 's/::/:/g' | sed 's/:$//') + +exec "$name" "${wayland_args[@]}"