#this file is sourced
if [ "$QDSK_SESSION" = "trinity" ] ; then
  F_USR_XDG_CFG_TDE="$( dash /usr/share/apps/q4os_system/bin/print_xdgcfghome_tde.sh )"
  if [ -z "$F_USR_XDG_CFG_TDE" ] ; then
    F_USR_XDG_CFG_TDE="$HOME/.config" #remove later as not needed
  fi
  if [ -f "/usr/bin/chromium" ] ; then
    export CHROME_CFGDIR="$F_USR_XDG_CFG_TDE/chromium"
    #export CHROMIUM_EXEC="/usr/bin/chromium"
  elif [ -f "/usr/bin/chromium-browser" ] ; then
    export CHROME_CFGDIR="$F_USR_XDG_CFG_TDE/chromium"
    #export CHROMIUM_EXEC="/usr/bin/chromium-browser"
  else
    export CHROME_CFGDIR="$F_USR_XDG_CFG_TDE/chromium"
    #export CHROMIUM_EXEC="/usr/bin/chromium"
  fi
  if [ -f "/opt/program_files/q4os-chromium/bin/chromium_wrapper.source" ] ; then
    . /opt/program_files/q4os-chromium/bin/chromium_wrapper.source
  fi
fi
