New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wayland only] Copying/pasting pages does not work #529
Comments
I cannot reproduce it. My pikepdf version is 1.17.3 but pikepdf is not used at all here. The code reponsible for this feature is: Could you try to add some |
This comment has been minimized.
This comment has been minimized.
Ah, I found something out: |
Yep it's Wayland exclusive. I just ran |
I would expect all clipboard based feature to be broken, not only paste as odd/even. |
Yeah, paste odd/even was just the only one I tried. |
@camlafit Are you using Wayland, too? |
Every now and then I give Wayland a try, a few days later stuff like this start biting me, I report a bug and go back to X11. I'm tempted to say it's not ready for production, but I probably shouldn't do that. @mara004 just to make sure I get this right: Copy/Paste does not work at all, not even adding a PDF file from the file system (e.g. copy from nautilus)? |
Hello @mara004 I confirm this behavior. I use debian 11 with wayland and gnome-shell. Move from nautilus to pdfarranger work but not copy/paste. To note copy/paste in nautilus works. |
Plasma Wayland itself is quite stable, and I actually prefer it over Plasma X11 because there's no flickering. (And there are more advantages, like better HiDPI support.) However, indeed a lot of issues exist with specific apps that probably need to be fixed on a case-by-case basis. For me, the best solution currently is to use the Wayland session and resort to XWayland with apps that have issues.
I can confirm the observations made by @camlafit:
I'd guess that it's a more difficult case for PDF Arranger since we're not just copying/pasting texts, but special objects in an internal clipboard. |
By the way: When running pdfarranger from source with |
No. There are many things that do not work properly when pdfarranger is not installed with pip (translations, command line help, ...). I do not concider that as bugs, just something that developers should keep in mind. |
Ok, thanks you for clarifying this. I just asked because the KDE guys usually want separate bug reports for everything :) |
It looks like wayland don't support "arbitrary named clipboards" So _SELECTION_PDFARRANGER does not work. Normal clipboard works. So it would be possible to fix this issue by using normal clipboard (same way as Windows does). I guess we should do that. |
It is necessary because Wayland doesn't support arbitrary named clipboards. Close pdfarranger#529
It is necessary because Wayland doesn't support arbitrary named clipboards. Close pdfarranger#529
Description
I cannot get the "Paste as odd/even" feature to work. When I cut pages and do "Paste as even pages" or "Paste as odd pages", it simply takes no effect - no pages are pasted.
To Reproduce
Steps to reproduce the behavior:
Paste Special
->Paste As Odd Pages
(orPaste As Even Pages
)Unfortunately there is no logging output to see what happens internally.
Expected behavior
Pages should be pasted alternatingly, so that every other page is from the cut pages of the clipboard.
Input files
I used the standard PDFStitcher test file, but the issue can be reproduced with any other PDF or images.
System and Versions
python3 -m pdfarranger
This issue is a follow-up to #526, as suggested by @kbengs and @dreua (#526 (comment)).
I think @camlafit is affected too, maybe they can provide additional information.
The text was updated successfully, but these errors were encountered: