dynobo / normcap

OCR powered screen-capture tool to capture information instead of images
https://dynobo.github.io/normcap/
Other
1.98k stars 89 forks source link

Failing to copy to clipboard with version 0.5.2 on X11 #581

Open rwese opened 11 months ago

rwese commented 11 months ago

What happened?

Since the (flatpak) update on 12.12. with version 0.5.2 (c53f23b6)

After a rollback to 219a798e it works.

    Commit: 52b04bddb636a27fc66256f83a57a42b1e17e98c9e58cde73c3d51284ae5954c
    Parent: 66fc7616967419973479b8c96cfcb790a910ba8cc63d50c8ac4916380c4fbf7f
   Subject: update to 0.5.2 (c53f23b6)
      Date: 2023-12-12 22:59:31 +0000
   History:

    Commit: 66fc7616967419973479b8c96cfcb790a910ba8cc63d50c8ac4916380c4fbf7f
   Subject: chore: update urls to screenshots (219a798e)
      Date: 2023-09-18 20:44:56 +0000

xclip is properly installed.

$ whereis xclip
xclip: /usr/bin/xclip /usr/share/man/man1/xclip.1.gz

This might relate to #577 #541

How did you install NormCap?

FlatPak (Linux)

Operating System + Version?

Fedora 39

[Linux only] Display Server (DS) + Desktop environment (DE)?

X11

Debug log output?*

07:38:51 - WARNING - normcap.clipboard.handlers.xclip:36 - Your Linux runs with Wayland. Please install the system package 'xclip' to ensure that text can be copied to the clipboard correctly
dynobo commented 11 months ago

Thanks for reporting this, @rwese ! You actually scored a Hattrick here, pointing to three issues :see_no_evil: :

  1. xclip is used to copy to clipboard on Xorg, instead of the default Qt-method (like in NormCap 0.4.x)
  2. The warning text doesn't fit, as your Linux does not run Wayland
  3. xclip should be bundled in the NormCap flatpak (no need to install it on the system), but it seems like it isn't detected correctly.

1.) and 2.) should be fixed in v0.5.3, which I'm preparing right now. 3.) might take longer, but that shouldn't bother you, as on Xorg xclip should not be used anyway.