Like magic!
I tried adding it to ~./profile but that threw off the scaling for everything else in my environment.
Then I tried adding it to the .desktop file and that didn’t work, I ended up modifying the launcher.sh file to have export GDK_SCALE=2 before launching the .jar and that did it!
Ex.
#! /bin/bash
##Launches an instance of the Vision Client Launcher
# Get the location of the script.
REALDIR=$(cd "$( dirname "${BASH_SOURCE[0]}")" && pwd)
# Logging if error
LAUNCHER_LOGFILE="${REALDIR}/../visionclientlauncher.log"
LOG_MSG="ERROR [LauncherApplication ] [$(date +"%Y/%m/%d %T")]:"
if [ "$(getconf LONG_BIT)" != "64" ]; then
"${REALDIR}/../runtime/bin/./java" --version
if [ $? -ne 0 ]; then
echo "${LOG_MSG} 64-bit OS not detected. This launcher must run on a 64-bit OS." | tee -a "${LAUNCHER_LOGFILE}"
fi
fi
#update the .desktop icon
sed -i 's,Icon=launcher.png,'"Icon=${REALDIR}\/launcher.png"',' "${REALDIR}/../visionclientlauncher.desktop"
export GDK_SCALE=2
"${REALDIR}/../runtime/bin/./java" -jar "${REALDIR}/launcher-vision-client-linux.jar" $@ >/dev/null 2>&1 &
I appreciate the help @Kevin.Herron