1
0
Fork 0
forked from ahurac/dotfiles

waylectron : ré-écriture

This commit is contained in:
Hippolyte Chauvin 2023-11-16 10:13:50 +01:00
parent 360a75b594
commit dbf295355d

View file

@ -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[@]}"