From 35a8d69a9140b94a278b08fe2ec25180c8c03b36 Mon Sep 17 00:00:00 2001 From: sbosse Date: Wed, 28 Aug 2024 21:58:13 +0200 Subject: [PATCH] Wed 28 Aug 21:58:08 CEST 2024 --- bin/simndt.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 bin/simndt.sh diff --git a/bin/simndt.sh b/bin/simndt.sh new file mode 100644 index 0000000..af18337 --- /dev/null +++ b/bin/simndt.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +DPI=`xrdb -query | grep dpi` +DPI=${DPI/*:/} +if [ "X$DPI" == "X" ] +then + DPI=96 +fi +if [ $DPI -gt 100 ] +then + export HIGH_DPI=1 +fi + +TOP=$HOME/proj/SimNDT +export LD_LIBRARY_PATH=$HOME/.local/lib/python2.7/site-packages/PySide +python2 $TOP/src/main.py