added a xdpyinfo presence check as a temporary fix.

This commit is contained in:
STRSHR 2017-09-11 23:51:58 +03:00
parent dd74cdb84b
commit 1c51ba29e9
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ if [ ! "${DISPLAY:-}" ]; then
exit 2 exit 2
fi fi
if ! hash xdpyinfo 2>/dev/null; then
echo -e "${CRed}xdpyinfo not installed, please install the relevant package for your distribution.$CClr"
exit 3
fi
if ! xdpyinfo &> /dev/null; then if ! xdpyinfo &> /dev/null; then
echo -e "${CRed}The script failed to initialize an xterm test session.$CClr" echo -e "${CRed}The script failed to initialize an xterm test session.$CClr"
exit 3 exit 3