-
-
Notifications
You must be signed in to change notification settings - Fork 198
Can't Copy Image to clipboard on Fedora with Wayland #416
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
Comments
Thanks for reporting. What Fedora version are you using? |
Hi Damir,
Fedora 32
regards
Tim
…On Sun, 30 Aug 2020 at 18:04, Damir Porobic ***@***.***> wrote:
Thanks for reporting. What Fedora version are you using?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#416 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHCNYXRHKYH56DWUK6NURTSDIBYPANCNFSM4QPIPNZA>
.
--
*Tim Richardson CPA, Director*
GrowthPath. Finance transformation for SMEs via Cloud ERP, advanced
reporting, CRM
Mobile: +61 423 091 732 Office/Reception: +61 3 8678 1850.
Book call: https://vyte.in/growthpath/15
Timezone is Melbourne AU.
See this link for international time planning:
https://www.timeanddate.com/worldclock/meeting.html?year=2020&month=5&day=16&p1=152
GrowthPath Pty Ltd
ABN 18100392326
Xero Gold Partner. Dear Inventory, Zoho Analytics and Cin7 Implementation
Partner. Custom integration specialists.
<http://www.growthpath.com.au/>
|
Tested just now with latest ksnip installed as snap and AppImage on Ubuntu Gnome Wayland, seems to be working, I was ableto take a screenshot and copy paste it into an email in GMail in browser. I think I have a Fedora 31 VM installed, testing with it next. |
Works also in Fedora 31 running Gnome (the default one, not Classic and not xorg) which seems to be Wayland according the The steps that I do:
You doing any of those steps differently? |
Hi Damir,
I have F33 beta now, and ksnip 1.7.3 (Flatpak).
When I do the steps you mention, the screen shot is not pasted into my
gmail compose tab.
I have the gnome shell extension 'Clipboard Indicator' which shows
clipboard history. There is no entry for the ksnip copy at all.
My screenshot is a rectangular selection. Full screen does not work either.
Usign the setting to automatically copy to clipboard does not work.
Pasting in LibreOffice Writer does not work. The copy button in ksnip is
not putting the screen shot in the clipboard.
So I decided to uninstall and try again. Previously, I had a dnf install
I tried the flatpak install and 1.7.3 installed, but it's the same thing.
Nothing is copied to the clipboard. The problem is not on the paste side,
it's the copy which is not working for me.
regards
Tim
==
…On Sun, 11 Oct 2020 at 21:02, Damir Porobic ***@***.***> wrote:
Works also in Fedora 31 running Gnome (the default one, not Classic and
not xorg) which seems to be Wayland according the XDG_SESSION_TYPE
variable. Here I have tested with ksnip 1.7.2
The steps that I do:
- Open ksnip
- Take screenshot, now visible in ksnip
- Open Firefox
- Login into gmail
- Click compose, this opens a new window for creating a new email
- Switch to ksnip, click copy
- Switch back to the new email window
- Paste image via CTRL+V
- Screenshot now visible in email
You doing any of those steps differently?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#416 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHCNYSJVHQQAFMXZNA5JRDSKF7C5ANCNFSM4QPIPNZA>
.
--
*Tim Richardson CPA, Director*
GrowthPath. Finance transformation for SMEs via Cloud ERP, advanced
reporting, CRM
Mobile: +61 423 091 732 Office/Reception: +61 3 8678 1850.
Book call: https://vyte.in/growthpath/15
Timezone is Melbourne AU.
See this link for international time planning:
https://www.timeanddate.com/worldclock/meeting.html?year=2020&month=5&day=16&p1=152
GrowthPath Pty Ltd
ABN 18100392326
Xero Gold Partner. Dear Inventory, Zoho Analytics and Cin7 Implementation
Partner. Custom integration specialists.
<http://www.growthpath.com.au/>
|
Ok, I'll try installing Fedora 32 next, this is the one which didn't work for you initially? |
HI Damir,
yes, then I upgraded to F33 beta in place. The wayland session (Fedora is
really impressive btw, speaking as someone new to it).
Also, I was able to paste into Krita (flatpak install) but the image was
unrecognisable.Krita complained about color-maps it couldn't understand.
regards
Tim
…On Mon, 12 Oct 2020 at 18:21, Damir Porobic ***@***.***> wrote:
Ok, I'll try installing Fedora 32 next, this is the one which didn't work
for you initially?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#416 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHCNYTTY3A7XHROOU7MUI3SKKU6BANCNFSM4QPIPNZA>
.
--
*Tim Richardson CPA, Director*
GrowthPath. Finance transformation for SMEs via Cloud ERP, advanced
reporting, CRM
Mobile: +61 423 091 732 Office/Reception: +61 3 8678 1850.
Book call: https://vyte.in/growthpath/15
Timezone is Melbourne AU.
See this link for international time planning:
https://www.timeanddate.com/worldclock/meeting.html?year=2020&month=5&day=16&p1=152
GrowthPath Pty Ltd
ABN 18100392326
Xero Gold Partner. Dear Inventory, Zoho Analytics and Cin7 Implementation
Partner. Custom integration specialists.
<http://www.growthpath.com.au/>
|
Can you try on your side installing Fedora 33 beta in a VM in VirtualBox and just download the ksnip AppImage and try out copy pasting somewhere? |
Hi Damir, I will do that,
regards
Tim
…On Thu, 15 Oct 2020 at 07:25, Damir Porobic ***@***.***> wrote:
Can you try on your side installing Fedora 33 beta in a VM in VirtualBox
and just download the ksnip AppImage and try out copy pasting somewhere?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#416 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAHCNYXYQDMMTU6EQKZ7X3TSKYCKTANCNFSM4QPIPNZA>
.
--
*Tim Richardson CPA, Director*
GrowthPath. Finance transformation for SMEs via Cloud ERP, advanced
reporting, CRM
Mobile: +61 423 091 732 Office/Reception: +61 3 8678 1850.
Book call: https://vyte.in/growthpath/15
Timezone is Melbourne AU.
See this link for international time planning:
https://www.timeanddate.com/worldclock/meeting.html?year=2020&month=5&day=16&p1=152
GrowthPath Pty Ltd
ABN 18100392326
Xero Gold Partner. Dear Inventory, Zoho Analytics and Cin7 Implementation
Partner. Custom integration specialists.
<http://www.growthpath.com.au/>
|
HI Damir,
I use vmware workstation pro for my VMs, so I first created a VM in it.
I'm running the wayland session (that is, I did not touch the defaults).
With the software app install (which is flatpak I assume), I get the same
problem. Pasting into a gmail compose windows in firefox just adds a blank
line.
BUT the appimage version works!
(v 1.7.3)
regards
Tim
…On Thu, 15 Oct 2020 at 09:07, Tim Richardson ***@***.***> wrote:
Hi Damir, I will do that,
regards
Tim
On Thu, 15 Oct 2020 at 07:25, Damir Porobic ***@***.***>
wrote:
> Can you try on your side installing Fedora 33 beta in a VM in VirtualBox
> and just download the ksnip AppImage and try out copy pasting somewhere?
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#416 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAHCNYXYQDMMTU6EQKZ7X3TSKYCKTANCNFSM4QPIPNZA>
> .
>
--
*Tim Richardson CPA, Director*
GrowthPath. Finance transformation for SMEs via Cloud ERP, advanced
reporting, CRM
Mobile: +61 423 091 732 Office/Reception: +61 3 8678 1850.
Book call: https://vyte.in/growthpath/15
Timezone is Melbourne AU.
See this link for international time planning:
https://www.timeanddate.com/worldclock/meeting.html?year=2020&month=5&day=16&p1=152
GrowthPath Pty Ltd
ABN 18100392326
Xero Gold Partner. Dear Inventory, Zoho Analytics and Cin7 Implementation
Partner. Custom integration specialists.
<http://www.growthpath.com.au/>
--
*Tim Richardson CPA, Director*
GrowthPath. Finance transformation for SMEs via Cloud ERP, advanced
reporting, CRM
Mobile: +61 423 091 732 Office/Reception: +61 3 8678 1850.
Book call: https://vyte.in/growthpath/15
Timezone is Melbourne AU.
See this link for international time planning:
https://www.timeanddate.com/worldclock/meeting.html?year=2020&month=5&day=16&p1=152
GrowthPath Pty Ltd
ABN 18100392326
Xero Gold Partner. Dear Inventory, Zoho Analytics and Cin7 Implementation
Partner. Custom integration specialists.
<http://www.growthpath.com.au/>
|
Thanks Tim for verifying. That brings us closer to the the issue. @LyzardKing do you have any idea if there is some kind of Clipboard restriction in Flatpaks and Snaps that could prevent accessing the Clipboard under Wayland? |
The snap works (I use it with copy/paste often). There shouldn't be anything flatpak-specific... |
I've did some additional testing in my VM:
I'll try to build tomorrow from source and see how that looks but so far it looks like we need to go in direction Ferdora Repo Packager and Snap packaging and see what's missing there. |
can confirm this. i had this bug in F32 too - but i changed from wayland to x11 cause of "such" problems. |
I wanted to check how it behaves when build from source but didn't find the time yet, maybe this week. @LyzardKing you say that you use the clipboard with the snap but have you tried with Wayland? Would be interesting if this was affecting the snap only under Fedora. I also need to figure out who's packaging ksnip for Fedora, it's not me. |
I normally run Ubuntu Mate, and it's not wayland compatible yet.. |
looks like its a permission problem. just for testing i started ksnip as root. (sudo) Keep in Mind this permission problem only occurs when using wayland. |
With Snap and the one from Fedora Repo? |
tested with the fedora package. didnt tryed snap / appimage |
I have pinged the fedora packager of ksnip, https://fedoraproject.org/wiki/User:Xvitaly. Let's see if has any idea. |
Fedora maintainer here. In Fedora, we force the Please try the following:
|
@xvitaly thanks for your feedback. Is this a general thing that you can't access the clipboard under Wayland? |
Yes. This is a common, well-known issue between native Wayland and XWayland applications. |
You mean that Qt Applications are by default XWayland? Or where does the XWayland come from? |
Most of distributions use the If you want to reproduce this issue on other distributions, just run ksnip on Wayland session under the
|
its working with |
I get that most distributions use Is there a way to define in the package from the repo that |
Yes of course. As another workaround, you can simply add to your export QT_QPA_PLATFORM=xcb After a system restart, all Qt applications will start using XWayland. |
AppImage contains its own Qt build from developer machine. It will not respect system configuration. |
I understand from this that it's not something that can or should be fixed by ksnip. Thought we can implement workarounds until this issue is resolved, correct?
It's probably a starting point, would be great if you could provide this PR. @LyzardKing would that be enough to fix the snap?
Yes, we can add a comment in the readme file. I'm not happy with this solution but currently there doesn't seem to be an alternative.
Can we set something like this in a running application? Thing is that if it's a settings, you need to start the application first in order to be able to access the config and at that point it might be to late. I'm open for this option too if there is a way. Maybe setting ksnip own environment variables that we could check for on startup. |
I don't know, sorry. IMHO, this bug should be fixed on Gnome and Qt sides.
Forcing the xcb backend will do more harm than good as it can break some things for other than Gnome 3 desktop environments users.
The same as patching the desktop file. Will do more harm than good. |
Another possible option is to check DE, and if it's Gnome running on Wayland, force XCB backend. I will send a PR. |
In the snap the issue is probably a different one, since the QT_QPA_PLATFORM variable is set to gtk3 (on gnome, mate, xfce and other gtk-based distros) @timrichardson @Frankstar Could one of you test the snap and check the QT_QPA_PLATFORM variable? EDIT: the commands have to be separate, so that the second runs in the correct shell instance
|
Added workaround in PR #457. |
Don't think that we can this do this check from the application. We do those checks already to determine the correct way for grapping screenshots but at this point Qt hast started already.
But the every user can decide if he wants to do it or not and then it affects only ksnip. With the desktop file workaround we potentially harm all users but the issue that we are facing here has so far been reported only for Fedora running Wayland. I'm thinking if we should drop the general Workaround and instruct users that are facing this problem to do the fix with env vars for your earlier posts. |
It works if the environment variables are set before the QApplication initialization. |
Sorry, saw your PR after my last post. I'm still unsure if I want to go that way because we basically force all Qt applications started after ksnip to use xcb and also for all gnome environments and so far I had only reports about the issue on Fedora. Currently I think I favor advising users to set those variables manually when they run into this issue and meanwhile trying to push the Qt and gnome side to look into a real fix. First thing would be to find out if this bug was reported upstream and if not, report it. |
tested the flatpak and AppImage again. So i think the best workaround on Fedora is to use the Flatpak or the AppImage. +1 for reporting it upstream |
also rename the issue pls.
it has nothing todo with firefox or gmail compose. |
I'm not a fan of advising users to change variables that could have effect on other applications too but it seems to be like a smaller issue then changing those variables without the user knowing about it. I'll make an entry in the readme stating what we know so far, under known issues. The users can then decide if they want use this workaround or switch to a different binary. I wont have time today but hopefully over the weekend I will create a minimum example application to show that issue and report that to Qt.
Title change to reflect what we know now. |
just another thing (for the readme) came into my mind ->
this way it only starts ksnip with changed also i just started the flatpak package with and we have the same issue. |
Good point, I'll mention that. I'll let you known when done so anyone here can provide feedback.
This is something @LyzardKing can probably answer, he's the flatpak and snap dude :) |
oh and before i forget it, Keep in mind it works with sudo privileges.
and clipboard is working. |
Bad advice. I will just apply my workaround #457 in downstream and rebuild Fedora package. |
This issue should be fixed in ksnip-1.7.3-2: F32, F33. Please test these builds. Installation from Koji on F32:
Installation from Koji on F33:
|
works on f33! no errors / problems |
Issue reported upstream https://bugreports.qt.io/browse/QTBUG-88293 While testing my minimum example application I've noticed that copying to clipboard works for text but not for images. |
ksnip-1.7.3-2 has been pushed to stable. This issue can be closed, I think. |
I've left it open until I have updated the readme file, which I have done now. Closing ticket. |
According to Qt this issue should be fixed with Qt |
When using Fedora with the wayland session, and Firefox (native wayland), I can't copy and paste an image from ksnip into gmail compose or google docs. This is with both the latest rpm install, and the Gnome Software install (which is listed as updated Aug 29 2020 so it seems to be latest as well).
The text was updated successfully, but these errors were encountered: