mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-09 13:58:14 -05:00
...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user