Replace 'brave-launcher' script

master
Hektor Misplon 2021-12-31 15:41:19 +01:00
parent 98e15f8412
commit ab7fe1a319
2 changed files with 3 additions and 9 deletions

3
.bin/brave Executable file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
/usr/bin/brave "$@" --use-gl=desktop

View File

@ -1,9 +0,0 @@
#!/usr/bin/env bash
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
BRAVE_USER_FLAGS_FILE="$XDG_CONFIG_HOME/brave-flags.conf"
if [[ -f $BRAVE_USER_FLAGS_FILE ]]; then
USER_FLAGS="$(sed 's/#.*//' < "$BRAVE_USER_FLAGS_FILE")"
fi
/usr/bin/brave "$@" "$USER_FLAGS"