Files
2026-06-22 15:35:18 +08:00

32 lines
769 B
Bash

#!/bin/bash
if [ -n "$DISPLAY" ]; then
echo "DISPLAY variable is set, GUI might be available."
else
echo "DISPLAY variable is not set, GUI is likely not available."
echo "Please run me in Ubuntu GUI window shell"
exit 0;
fi
cd "$(dirname "$(readlink -f "$0")")"
if [ $# -gt 0 ];then
echo -e " Help:\n\t Edit: \t double click cell\n\t Save: \t double Enter in cell"
exit 0
fi
if [ -f ../../../lib/x86/lib_so/libprpublicmemory.so ];then
export LD_LIBRARY_PATH=$(pwd)/../../../lib/x86/lib_so/:$LD_LIBRARY_PATH
chmod +x testui
./testui
if [ $? -eq 134 ];then
echo -e "\n\e[31;49m Error: Only run in Ubuntu GUI. \e[0m\n_______________\n"
fi
else
echo -e "\e[31;1m not found libprpublicmemory.so£¬ please rebuild: lib_so/build.sh all \e[0m"
fi