Correction : amélioration du script waylectron qui lit maintenant ses arguments depuis le fichier ~/.config/electron-flags.conf
This commit is contained in:
parent
0ae2027504
commit
4e72ee3aff
1 changed files with 4 additions and 3 deletions
|
@ -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
|
"$@"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue