forked from ahurac/dotfiles
waylectron : ré-écriture
This commit is contained in:
parent
360a75b594
commit
dbf295355d
1 changed files with 6 additions and 6 deletions
|
@ -1,8 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
program="$(basename "$0")"
|
name=$(basename "$0")
|
||||||
readarray -t wayland_args < ~/.config/electron-flags.conf
|
path=$(dirname "$0")
|
||||||
PATH="$(echo "$PATH" | sed "s|$(dirname "$(which "$program")")||g" | sed 's/^://g' | sed 's/::/:/g')"
|
mapfile wayland_args < ~/.config/electron-flags.conf
|
||||||
exec "$program" \
|
|
||||||
"${wayland_args[@]}" \
|
|
||||||
"$@"
|
|
||||||
|
|
||||||
|
PATH=$(echo "$PATH" | sed "s|$path||g" | sed 's/^://' | sed 's/::/:/g' | sed 's/:$//')
|
||||||
|
|
||||||
|
exec "$name" "${wayland_args[@]}"
|
||||||
|
|
Loading…
Reference in a new issue