1
0
Fork 0
forked from ahurac/dotfiles

Solutions plus simple que xargs

This commit is contained in:
Hippolyte CHAUVIN 2023-05-02 11:49:10 +02:00
parent 8a91705b26
commit 89f8a655f1

View file

@ -1,6 +1,6 @@
#!/bin/sh
program="$(basename "$0")"
PATH="$(echo "$PATH" | sed 's|'"$(which "$program" | tr '\n' '\0' | xargs -0 dirname)"'||g' | sed 's/^://g' | sed 's/::/:/g')"
PATH="$(echo "$PATH" | sed 's|'"$(dirname "$(which "$program")")"'||g' | sed 's/^://g' | sed 's/::/:/g')"
exec "$program" \
"$@" \
--ozone-platform-hint=wayland