Correction : amélioration du script waylectron qui lit maintenant ses arguments depuis le fichier ~/.config/electron-flags.conf

This commit is contained in:
Hippolyte Chauvin 2023-06-25 16:41:04 +02:00
parent 0ae2027504
commit 4e72ee3aff

View file

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/bash
program="$(basename "$0")" 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')" PATH="$(echo "$PATH" | sed "s|$(dirname "$(which "$program")")||g" | sed 's/^://g' | sed 's/::/:/g')"
exec "$program" \ exec "$program" \
"$@" \ "${wayland_args[@]}" \
--ozone-platform-hint=wayland "$@"