savedra1 / clipse

Configurable TUI clipboard manager for Unix
MIT License
272 stars 10 forks source link

System clipboard is not added to clipboard history #16

Closed Tommimon closed 5 months ago

Tommimon commented 5 months ago

Description

I just tried this program but it's not working for me. I can launch the background process and show the TUI but there is no entry.

I tried to copy from many applications but nothing is ever added to the history. I can add entries with clipse -a something but then I experience the issue the other way around: once I select the entry I'm unable to paste it. It looks like clipboard history and system clipboard can't communicate at all.

I can tell the background process is not crashing because a process named clipse is always visible with top during all my tests.

Setup

I'm reporting only the relevant parts of the configuration files.

configuration.nix

environment.systemPackages = with pkgs; [
  unstable.clipse
  alacritty
];

hyprland.conf

exec-once = clipse -listen 
windowrulev2 = float,class:(floating)
bind = SUPER, V, exec, alacritty --class floating -e bash -c 'clipse $PPID'

System Info

savedra1 commented 5 months ago

Thanks for raising this issue @Tommimon. I'm not sure what is causing the bug but I can suggest a couple of things to troubleshoot:

If the above gets you nowhere, it sounds like an issue with how the github.com/atotto/clipboard library (used for capturing system clipboard input) is interacting with your system, which we can look more into if needed.

It may also be worth attempting to run the app within a nix shell using nix shell github:NixOS/nixpkgs#clipse to see if that helps also.

Let me know how you get on!

savedra1 commented 5 months ago

have also discovered issues when a user does not have one of the following installed:

Do you have wl-clipboard in your packages? that may be the fix here. I'm updating the readme advice to make others aware.

Tommimon commented 5 months ago

I can confirm adding wl-clipboard to environment.systemPackages solved the problem, thanks!

I wonder if it is possible to add wl-clipboard as a dependency in the nix package so nobody needs to remember to install it.

Maybe an option to specify the package is needed in case you want xclip or xsel instead.

savedra1 commented 5 months ago

Thanks for confirming @Tommimon

Agree - deffo gonna look into the best way to present this in terms of the nix package, plans also to integrate wl-clip into the binary itself so a separate install wouldn't be required. on the list for the next release :)