Files
lightgui_python/ide

10 lines
291 B
Bash
Executable File

#!/bin/sh
# LightGUI Python port launcher. Mirrors the C `ide` script: checks DISPLAY,
# then runs the designer.
if [ -z "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
echo "ide: no display (DISPLAY unset)" >&2
exit 1
fi
cd "$(dirname "$0")" || exit 1
exec python3 -m lightgui "$@"