Open muhammadz0 opened 1 year ago
Are you running it on X11 or Wayland?
On Wayland via XWayland
It doesn't work on wayland. Haven't tested on xwayland either
well it did work sometime ago
Well, I reinstalled the app and elementary SDK, and now it doesn't show the error with --debug
Only this, after copying text in Firefox (system):
Current clipboard offers formats: 12
0 text/x-moz-url-priv
1 text/plain
2 text/plain;charset=utf-8
3 text/_moz_htmlinfo
4 text/_moz_htmlcontext
5 text/html
so, you're running it on xwayland right. technically it would work since thats x11, try running it without the --debug and see what errors are showing up.
Ah, again:
Traceback (most recent call last):
File "/app/share/com.github.hezral.clips/clips/cache_manager.py", line 311, in update_cache
data_tuple = clipboard_manager.clipboard_changed(clipboard, event)
File "/app/share/com.github.hezral.clips/clips/clipboard_manager.py", line 75, in clipboard_changed
clipboard_contents = self.get_clipboard_contents(clipboard, event, active_app)
File "/app/share/com.github.hezral.clips/clips/clipboard_manager.py", line 114, in get_clipboard_contents
if "WPS" in active_app and not "WPS" in supported_target[2]:
TypeError: argument of type 'NoneType' is not iterable
thanks that narrows it. hmm are you trying to copy something in WPS Office? I havent update this part of the code for awhile and it worked when i tested it last time
nope, Firefox
hmm for all apps too?
yep, just tried Chromium (flatpak) and Nautilus
Ok, I'll try to reproduce this. Can you share your setup? OS, desktop environment
Fedora Linux 36 64-bit, GNOME 42.3, Wayland
Thanks
Can you try moving the cache folder ~/.var/app/com.github.hezral.clips somewhere else and restart the app?
I just tried on Fedora 36, Gnome 42, X11 and it's working fine
hmm, didn't work. I had already tried that multiple times. Also tried resetting the permissions. Didn't work
I tried it in X11 session, and it did work, however still the same on Wayland. Can you try on Wayland?
Wayland won't work as-is for this app. I'm working on a gnome shell extension version of Clips which will work on Wayland and X11
Sorry, I meant via XWayland
Which specific xwayland app did it worked with? Firefox, Chromium, Nautilus are all wayland not xwayland.
In any case, it wouldn't have worked to begin with really since the backend fully relies on X11 and won't start in Wayland.
ah sorry mb. Actually now that I remember, I used Code-OSS with XWayland, and it was the only app I used for Clips I think. Sorry my bad
Here's the output with
flatpak run com.github.hezral.clips --debug
After copying some text