aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
Diffstat (limited to 'internal')
-rw-r--r--internal/system/wayland.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/system/wayland.go b/internal/system/wayland.go
index 36a7fa6d..9394aaab 100644
--- a/internal/system/wayland.go
+++ b/internal/system/wayland.go
@@ -32,6 +32,11 @@ func (w Wayland) Type() Enablement {
}
func (w Wayland) apply(sys *I) error {
+ // the Wayland op is not repeatable
+ if sys.sp != nil {
+ return errors.New("attempted to attach multiple wayland sockets")
+ }
+
if err := w.conn.Attach(w.pair[1]); err != nil {
return fmsg.WrapErrorSuffix(err,
fmt.Sprintf("cannot attach to wayland on %q:", w.pair[1]))