We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1804667 commit ab89ef2Copy full SHA for ab89ef2
1 file changed
docs/linux/installer-pre-prod.sh
@@ -717,6 +717,13 @@ show_help() {
717
echo
718
echo "Without any options, the script will install Phoenix Code."
719
}
720
+
721
+# Check for GUI session by looking for DISPLAY or WAYLAND_DISPLAY variables
722
+if [ -z "${DISPLAY:-}" ] && [ -z "${WAYLAND_DISPLAY:-}" ]; then
723
+ echo "This script should only be run from terminals in GUI sessions."
724
+ exit 1
725
+fi
726
727
case "${1-}" in
728
-h|--help)
729
show_help # Function to show help
0 commit comments