aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/app/wayland.go4
-rw-r--r--internal/app/x.go4
2 files changed, 2 insertions, 6 deletions
diff --git a/internal/app/wayland.go b/internal/app/wayland.go
index 1cabdbdb..3b0be85f 100644
--- a/internal/app/wayland.go
+++ b/internal/app/wayland.go
@@ -20,9 +20,7 @@ func (a *App) ShareWayland() {
// ensure Wayland socket ACL (e.g. `/run/user/%d/wayland-%d`)
if w, ok := os.LookupEnv(waylandDisplay); !ok {
- if system.V.Verbose {
- fmt.Println("Wayland: WAYLAND_DISPLAY not set, skipping")
- }
+ state.Fatal("Wayland: WAYLAND_DISPLAY not set")
} else {
// add environment variable for new process
wp := path.Join(system.V.Runtime, w)
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)