This commit is contained in:
unknown
2025-12-19 19:01:43 -08:00
parent d0365c73f5
commit c570a18f4d

View File

@@ -138,7 +138,7 @@ fi
###### DESKTOP APP
function has_no_display {
if [[ "$OSTYPE" == darwin* ]]; then
if [[ "${OSTYPE:-}" == darwin* ]]; then
if pgrep -x WindowServer >/dev/null 2>&1 &&
[[ "$(launchctl managername 2>/dev/null)" == "Aqua" ]]; then
return 0 # macOS GUI