From 4e72ee3aff1a672bb59d29caec17eca4da139a90 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 25 Jun 2023 16:41:04 +0200 Subject: [PATCH] =?UTF-8?q?Correction=20:=20am=C3=A9lioration=20du=20scrip?= =?UTF-8?q?t=20waylectron=20qui=20lit=20maintenant=20ses=20arguments=20dep?= =?UTF-8?q?uis=20le=20fichier=20~/.config/electron-flags.conf?= 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 2189972..b387a77 100755 --- a/bin/waylectron +++ b/bin/waylectron @@ -1,7 +1,8 @@ -#!/bin/sh +#!/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" \ - "$@" \ - --ozone-platform-hint=wayland + "${wayland_args[@]}" \ + "$@"