-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Flameshot doesn't work on Ubuntu 22.04: Use QT_QPA_PLATFORM=wayland #2199
Comments
I was able to replicate this and then fix it. In a clean VM I saw this issues, then I installed: I also installed |
Thanks a lot, it works fine again ! It just adds a small step: when I run the screenshot, it does a capture of the entire screen, then I have to click on "Share", and it opens the normal Flameshot border selection, with all the options to save the image :) |
We should add this to our Wayland documentation I guess if it is reproducible on a clean VM. @borgmanJeremy and @hosiet if you two agree on this, I will assigned an issue to myself to do it. |
It for sure is a requirement for gnome 41+ on wayland. The open question is if we should list it in the .deb file also. |
Please do so. Also note that xdg-desktop-portal-gnome is only for GNOME. For other Wayland-enabled desktop environment, they may need xdg-desktop-portal-gtk or xdg-desktop-portal-kde or xdg-desktop-portal-wlr for different DEs respectively. |
@hosiet is it possible to write the control file to be specific to the DE? |
I don't have opinions for upstream-provides debs. For distribution-provided packages, we already have this: https://sources.debian.org/src/flameshot/0.10.2+ds1-4/debian/control/
Probably you may also use such format; it may have advantages and disadvantages. I don't have an ideal solution. |
Just FYI: conditional-depends (install A if B has been installed) is not supported in all known dependency resolvers since that will introduce unacceptable level of complexity. |
Added to Fedora:
Should be fixed now. |
RPM supports this since version 4.13: https://rpm-software-management.github.io/rpm/manual/boolean_dependencies.html |
Thanks for the info. In Debian, the |
Same thing here. Is this the expected behaviour? |
Read the link, yes, it's gnomes decision |
This comment was marked as off-topic.
This comment was marked as off-topic.
@avramukk The problem you have is with Gnome and not Flameshot. Take your complaints to them. More information here: I'll hide your message as it if off-topic |
This comment was marked as off-topic.
This comment was marked as off-topic.
@mmahmoudian I think we should program a bot to answer that question lol. @Dylan-86 that share button is a change gnome made upstream and we have no control over it. Sorry for the small sarcasm, I think we are averaging that question twice a day. |
@Dylan-86 please read this: https://flameshot.org/docs/guide/wayland-help/#gnome @borgmanJeremy I'll pay 200€ for that bot if it answers that question every time and hide the question or close the issue. I bet Emacs has a package for that 😂 |
Thanks!! Thanks! |
I've been using gnome on xorg as a workaround but mainly use kde |
This comment was marked as duplicate.
This comment was marked as duplicate.
Same here. UPD#1: Reinstall doesn't help |
Unfortunately, I still got:
After googling a bit and finding this, I realized that if I run |
Flameshot Version
Flameshot 0.10.2
Installation Type
Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)
Operating System type and version
Ubuntu 22.04 development
Description
Hi, thanks for this wonderful soft and all the work done. Sorry if the issue is linked to another one already opened, like #2107 :
I just upgraded to Ubuntu 22.04 development branch, and Flameshot doesn't work anymore. I well have the indicator on the top Gnome Shell panel, but trying to run a screenshot does nothing - no black window with resizing borders appears.
If I try to run from terminal, I get the error message :
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway
I don't know what it means and how to set up QT_QPA_PLATFORM=wayland. I well have gambas3-gb-qt5-wayland and qtwayland5 installed, but on the login screen I only have 3 choices : Gnome, Ubuntu Wayland or X-Org.
Other users have the same issue, and the same happens with Ksnip - so it's certainly a problem due to Wayland security restrictions, and not a bug in Flameshot :
https://forum.ubuntu-fr.org/viewtopic.php?id=2068335
Steps to reproduce
Run flameshot on a Wayland session
Screenshots or screen recordings
No response
System Information
Ubuntu 22.04 on Wayland
The text was updated successfully, but these errors were encountered: