Skip to content

Commit

Permalink
chore: disable clipboard module on wayland
Browse files Browse the repository at this point in the history
wayland has a ready clipboard manager.

Log:
  • Loading branch information
justforlxz committed Jun 19, 2024
1 parent 32ffa1a commit 3945d68
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clipboard1/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
package clipboard

import (
"os"

"github.com/linuxdeepin/dde-daemon/loader"
"github.com/linuxdeepin/go-lib/log"
x "github.com/linuxdeepin/go-x11-client"
Expand Down Expand Up @@ -35,6 +37,9 @@ func (*Module) GetDependencies() []string {
}

func (mo *Module) Start() error {
if os.Getenv("WAYLAND_DISPLAY") != "" {
return nil
}
logger.Debug("clipboard module start")

xConn, err := x.NewConn()
Expand Down

0 comments on commit 3945d68

Please sign in to comment.