diff --git a/ebook2audiobook.sh b/ebook2audiobook.sh index 4192a422..ff3e5285 100755 --- a/ebook2audiobook.sh +++ b/ebook2audiobook.sh @@ -420,6 +420,15 @@ else return 1 # No display server → headless fi + if pgrep -x vncserver >/dev/null 2>&1 || \ + pgrep -x Xvnc >/dev/null 2>&1 || \ + pgrep -x x11vnc >/dev/null 2>&1 || \ + pgrep -x Xtightvnc >/dev/null 2>&1 || \ + pgrep -x Xtigervnc >/dev/null 2>&1 || \ + pgrep -x Xrealvnc >/dev/null 2>&1; then + return 0 + fi + if pgrep -x gnome-shell >/dev/null 2>&1 || \ pgrep -x plasmashell >/dev/null 2>&1 || \ pgrep -x xfce4-session >/dev/null 2>&1 || \ @@ -550,11 +559,6 @@ PLIST open_gui } - function linux_app { - # Linux desktop entry creation goes here - return 0 - } - function linux_app() { local DESKTOP_FILE="$HOME/.local/share/applications/ebook2audiobook.desktop" local ICON_PATH="$APP_ROOT/tools/icons/linux/appIcon"