Giter VIP home page Giter VIP logo

Comments (4)

gustavo-hms avatar gustavo-hms commented on June 18, 2024 1

That works. Thanks!

And I've just realised what was the source of the problem: I've installed Kakoune as a snap package, since the deb package provided by Ubuntu is a bit outdated. And the Gnome Desktop is breaking Snap configuation. It simply changes env variables at will. A bit selfish desktop I can say...

from kakboard.

lePerdu avatar lePerdu commented on June 18, 2024

That's odd. What versions of Kakoune and wl-clipboard are you using? I can't reproduce this on Manjaro with SwayWM (Kakoune v2020.01.16, wl-clipboard 2.0.0). I'll try on GNOME at some point when I can.

Something you can try is messing with XDG_RUNTIME_DIR and WAYLAND_DISPLAY. The path $XDG_RUNTIME_DIR/$WAYLAND_DISPLAY should be a socket that's created by GNOME. They should both be set already to something like /run/user/<uid> and wayland-0, but you can try specifying them explicitly for wl-copy and wl-paste (both inside and outside of Kakoune).

Inside Kakoune, try setting kakboard_copy_cmd and kakboard_paste_cmd and also just running the commands using Kakoune's <a-|> (pipe selections to a command) and ! (insert command output) keys.

from kakboard.

gustavo-hms avatar gustavo-hms commented on June 18, 2024

I used to use it on Manjaro's Sway and I can confirm it works there. I can also confirm it works on Manjaro's Plasma Wayland. This is why I think the problem may be related to some configuration stuff. Specially because I suspect Gnome is messing up with my XDG_DATA_DIRS. But both XDG_RUNTIME_DIR and WAYLAND_DISPLAY point to the right place. It seems to be something else.

What versions of Kakoune and wl-clipboard are you using?

Same versions as yours.

As I said, running wl-copy something or echo something | wl-copy works as expected. But piping a selection from within Kakoune to wl-copy using <a-|> raises the same Failed to connect` error.

I also noted that nvim works as expected and it uses the same wl-clipboard program.

you can try specifying them explicitly for wl-copy and wl-paste

Do you mean by explicitly setting the environment variables?

from kakboard.

lePerdu avatar lePerdu commented on June 18, 2024

Yes, I mean setting them explicitly for the invocation of the program like this:
env XDG_RUNTIME_DIR=/var/run WAYLAND_DISPLAY=wayland-0 wl-copy

from kakboard.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.