NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.13k stars 13.42k forks source link

Flameshot clipboard doesn't work in sway. #181759

Open Tungsten842 opened 2 years ago

Tungsten842 commented 2 years ago

Describe the bug

Copying to the clipboard doesn't do anything, nothing gets copied. I am using copyq and I see that nothing shows up in copyq.

Steps To Reproduce

Steps to reproduce the behavior:

  1. open flamework with "flameshot gui"
  2. select area
  3. press "Copy selection to clipboard"

Additional context

I am using sway.

Notify maintainers

@scode @oxalica ### Metadata Please run `nix-shell -p nix-info --run "nix-info -m"` and paste the result. ```console [user@system:~]$ nix-shell -p nix-info --run "nix-info -m" - system: `"x86_64-linux"` - host os: `Linux 5.15.53, NixOS, 22.11 (Raccoon), 22.11pre390948.5f43d8b088d` - multi-user?: `yes` - sandbox: `yes` - version: `nix-env (Nix) 2.9.1` - channels(root): `"home-manager, nixos"` - channels(quantmint): `""` - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos` ```
roxifas commented 2 years ago

I've also had this issue on X11 with bspwm with flameshot 11.0.0, pinning to version 12.1.0 from unstable nixpkgs resolved it for me. It's possible this is a flameshot bug: https://github.com/flameshot-org/flameshot/issues/2626 There are also a few other clipboard related issues in the flameshot repo but they seem to be for non-linux OSes.

haizaar commented 2 years ago

Upstream report: https://github.com/flameshot-org/flameshot/issues/2848

I have the same behavior on Plasma + Wayland.

haizaar commented 2 years ago

Enabling wayland clipboard compilation flag helps, at least on KDE: https://github.com/flameshot-org/flameshot/issues/2848#issuecomment-1199643659

What's the best way to incorporate it upstream? I'm not sure we want to incorporate kguiaddons verbatim for everyone including GNOME users?