aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/x.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-09-09 00:35:16 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-09-09 00:35:16 +0900
commit3242ce340621839d03ecf34bb3ed20d7c6f3cbb3 (patch)
tree082a52193d3d78636aa62adc93e018c45043395e /internal/app/x.go
parent7450b0b0bbf6dd3ee21741335190c852dfd6c644 (diff)
app: treat display server variable unset as fatal
This is yet another remnant of Ego, as Ego unconditionally shares these resources and the absence of them are ignored and warned about in verbose logging. In our case they are individually opt-in so silently dropping them while the enablement is still set makes very little sense. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/x.go')
-rw-r--r--internal/app/x.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/internal/app/x.go b/internal/app/x.go
index 02c40a68..414870bf 100644
--- a/internal/app/x.go
+++ b/internal/app/x.go
@@ -16,9 +16,7 @@ func (a *App) ShareX() {
// discovery X11 and grant user permission via the `ChangeHosts` command
if d, ok := os.LookupEnv(display); !ok {
- if system.V.Verbose {
- fmt.Println("X11: DISPLAY not set, skipping")
- }
+ state.Fatal("X11: DISPLAY not set")
} else {
// add environment variable for new process
a.AppendEnv(display, d)