#!/bin/sh #--------------------------------------------------------------------- export QTWEBENGINE_DICTIONARIES_PATH=$PRODTREE/dooble/bdic export AA_ENABLEHIGHDPISCALING=1 export AA_USEHIGHDPIPIXMAPS=1 export DOOBLE_HOME="$HOME/.config/dooble" if [ ! -z "$(which qt6ct)" ] then echo "Exporting QT_QPA_PLATFORMTHEME as qt6ct" export QT_QPA_PLATFORMTHEME=qt6ct fi # Maximum of 50. export DOOBLE_ADDRESS_WIDGET_HEIGHT_OFFSET=0 # Must be a valid URL. 1024 characters or less. export DOOBLE_GOOGLE_TRANSLATE_URL="https://%1.translate.goog/\ %2?_x_tr_sl=auto&_x_tr_tl=%3&_x_tr_hl=%3&_x_tr_pto=wapp" # Maximum of 50. export DOOBLE_TAB_HEIGHT_OFFSET=5 # Automatic scaling. export QT_AUTO_SCREEN_SCALE_FACTOR=1 # Disable https://en.wikipedia.org/wiki/MIT-SHM. export QT_X11_NO_MITSHM=1 #--------------------------------------------------------------------- TARGET=$PRODTREE/dooble/xbin/dooble PROGNAME="dooble" export QTWEBENGINE_DISABLE_SANDBOX=1 if [ -f $TARGET ]; then # If there are no parameters, start in # user's home directory if [ "x$1" = "x" ]; then cd; fi resetpcmvol # See comments in the code /laclin/lacutil/single-instance --wait --usepid \ '/xbin/dooble\b' $TARGET $* & exit else TITLE="$PROGNAME isn't installed" MSG="This version of this distro omits $PROGNAME." /laclin/lacutil/single-instance --wait --usewin \ "^$TITLE" \ zenity --error --no-wrap --title="$TITLE" --text="$MSG" fi