LaurenceWarne / qute-code-hint

A Qutebrowser user script for hinting and copying code
23 stars 2 forks source link

Pyperclip moved to pyclip #2

Closed LucasTavaresA closed 1 year ago

LucasTavaresA commented 1 year ago

See: https://pypi.org/project/pyperclip3/

LaurenceWarne commented 1 year ago

Hi, thanks for the contribution!

Pyperclip moved to pyclip

Is this right? pip3 install pyperclip still works for me, and https://pypi.org/project/pyperclip/ is still up n running. https://github.com/spyoungtech/pyclip appears to me a different project? Though I'd be open to providing support for it, something like:

try:
    import pyperclip
except ImportError:
    try:
        import pyclip as pyperclip
    except ImportError:
        PYPERCLIP = False

What do you think?

LucasTavaresA commented 1 year ago

yeah im having doubts from that page i linked as well, but pyperclip is not working on wayland cause it expects $DISPLAY variable which is not used by wayland anymore or never was used. pyclip instead just separates the wayland logic from the rest of x11, feel free to do what you wish