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
|
||||
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[@]}"
|
||||
|
|
Loading…
Reference in a new issue