2025-09-22 16:34:39 -04:00

19 lines
524 B
Bash
Executable File

#! /bin/bash
# Cleanup
if ! pgrep opera > /dev/null;then
rm -f $HOME/.config/opera/Singleton*
fi
BIN=/usr/bin/opera-real
LANG=$(echo $LC_ALL| sed 's/\.UTF-8//g'| sed 's/_/-/g')
LANG_SHORT=$(echo $LANG | awk -F'-' '{print $1}')
if [ -f /usr/lib/x86_64-linux-gnu/opera/localization/${LANG_SHORT}.pak ]; then
LANG_CLI="--lang=${LANG_SHORT}"
fi
if [ -f /usr/lib/x86_64-linux-gnu/opera/localization/${LANG}.pak ]; then
LANG_CLI="--lang=${LANG}"
fi
${BIN} --password-store=basic --no-sandbox --test-type ${LANG_CLI} "$@"