From 60ac69621ea1ccce38aa6df67fdbc2ce63f1b601 Mon Sep 17 00:00:00 2001 From: Terrence Ezrol Date: Sun, 3 Aug 2025 01:30:16 -0400 Subject: [PATCH] make error no display error more clear --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 6abfa95..59020fa 100644 --- a/main.go +++ b/main.go @@ -39,6 +39,10 @@ func main() { display = *overrideDisplay } + if display == "" { + log.Fatalf("No DISPLAY environment variable set and no override provided. Please set DISPLAY or use --display.") + } + connType, target := resolveDisplay(display) fmt.Printf("Proxying to %s (%s)\n", target, connTypeString(connType))