Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot copy to clipboard #90

Open
Mr-Andersen opened this issue Apr 11, 2024 · 2 comments
Open

Cannot copy to clipboard #90

Mr-Andersen opened this issue Apr 11, 2024 · 2 comments

Comments

@Mr-Andersen
Copy link

Cannot copy to clipboard:
Running ("pbcopy",[]) failed with exception: pbcopy: startProcess: posix_spawnp: does not exist (No such file or directory).
Running ("wl-copy",[]) failed with exception: wl-copy: startProcess: posix_spawnp: does not exist (No such file or directory).
Running ("xclip",["-selection","clipboard"]) failed with exception: xclip: startProcess: posix_spawnp: does not exist (No such file or directory).
Running ("xsel",["-i","-b"]) failed with exception: xsel: startProcess: posix_spawnp: does not exist (No such file or directory).
Please report this as a bug.
> nix-tree --version
nix-tree 0.4.0

nixpkgs revision = 23ff7d9dc4f3d553939e7bfe0d2667198f993536
@utdemir
Copy link
Owner

utdemir commented Apr 11, 2024

This is know - and tricky to fix.

As you can see, we do go through a couple of possible apps to copy to clipboard (as I couldn't find a ready to use Haskell library that provides a cross platform copy-to-clipboard functionality). And if none exists, we fail. An easy fix would be to install one of them.

A better solution would be to update nixpkgs to add one of them as a runtime dependency. But I believe that'd introduce a dependency to X that I want to avoid. So we could add an optional (but default off) dependency, but at that point it'd be just easier for the users to install one of them instead of figuring out how to flip that flag on.

So what I'll do instead is that I'll fix the error message so it doesn't say "report this as a bug", but says something like "install ... application to use this functionality".

@spiage
Copy link

spiage commented Jun 10, 2024

Hello!

Can you please help me?
I'm with plasma 5 x11, which clipboard tool from this list is for my case?

Best wishes,
Sergei

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants