RPM build for ungoogled-chromium
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
497 B

#!/usr/bin/env bash
# Load user flags
if [ -n "$XDG_CONFIG_HOME" ]; then
USER_FLAGS_LOCATION="$XDG_CONFIG_HOME/chromium-flags.conf"
elif [ -n "$HOME" ]; then
USER_FLAGS_LOCATION="$HOME/.config/chromium-flags.conf"
fi
echo "loc: $USER_FLAGS_LOCATION"
if [ -f $USER_FLAGS_LOCATION ]; then
while read -r line; do
case "$line" in
--*)
CHROMIUM_DISTRO_FLAGS+="$line "
;;
esac
done < "$USER_FLAGS_LOCATION"
fi
echo "flags: $CHROMIUM_DISTRO_FLAGS"