fix: set NO_WX before dependency boot and detect headless sessions per platform so the TUI fallback actually works (issue #33)

This commit is contained in:
2026-07-16 18:13:15 +02:00
parent 381deb417d
commit 59333ac920
4 changed files with 106 additions and 16 deletions

View File

@@ -1,5 +1,11 @@
import Config
# Headless boots (BDS_MODE=server/tui, or desktop mode without a graphical
# display — issue #33) must neuter wx before the :desktop dependency
# application starts it and crashes the VM. Runtime config is the only hook
# that runs before dependency applications start.
BDS.Server.prepare_boot_env()
if config_env() == :prod do
database_path =
System.get_env("BDS_DATABASE_PATH") ||