bugaevc / wl-clipboard

Command-line copy/paste utilities for Wayland
GNU General Public License v3.0
1.62k stars 60 forks source link

Missing shell #135

Closed luetage closed 2 years ago

luetage commented 2 years ago

Whenever I try to invoke wl-copy, no matter the application, it complains it’s “missing a shell.” This started happening after updating to Fedora 36. I’m out of my depth here, because I don’t know what that implies. Would be thankful for any hints.

Fedora 36 / Gnome 42.1 / Wayland

YaLTeR commented 2 years ago

Works here on latest F36 Silverblue. Is your wl-clipboard up-to-date?

luetage commented 2 years ago

I was on 2.0 indeed, thank you for reminding me. But I implemented the 2.1 build just now and still get the same outcome, e.g. in terminal wl-copy --primary "hello there" and get Missing a shell.

YaLTeR commented 2 years ago

Ah, I see what it might be. If you're building wl-clipboard yourself (rather than using distribution packages, Fedora has it for example) then you need wayland-scanner and maybe wayland-protocols to get wl-clipboard that supports the proper Wayland protocols.

luetage commented 2 years ago

That’s it, good find. Thank you for your support! The solution was to install the package, which is 2.0 on Fedora 36. I already had wayland-scanner and wayland-protocols installed, or my previous build wouldn’t have worked on 35. I’m still not quite sure why the manual build didn’t work, but I simply uninstalled and replaced it now…

YaLTeR commented 2 years ago

Alright, good to know!

YaLTeR commented 2 years ago

You might have your local build left over and taking precedence. Check which wl-copy, it might be the one /usr/local/bin that you need to clean up.