Skip to content
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 not working properly on fedora38 on kde on wayland #3336

Open
hasanramp opened this issue Sep 17, 2023 · 4 comments
Open

flameshot not working properly on fedora38 on kde on wayland #3336

hasanramp opened this issue Sep 17, 2023 · 4 comments
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.

Comments

@hasanramp
Copy link

Flameshot Version

Flameshot v12.1.0 (6228b19)
Compiled with Qt 5.15.10

OS: Fedora Linux 38 (KDE Plasma) x86_64

Installation Type

Compiled from source

Operating System type and version

GNU/Linux Fedora 38

Description

When I try to run flameshot gui , the area of the screen visible becomes a little more than 1/4th.
the error I get:

QLayout: Attempting to add QLayout "" to SidePanelWidget "", which already has a layout
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

what I have tried

I already install xdg-desktop-portal-kde xdg-desktop-portal
#2660 (comment)

Steps to reproduce

install flameshot from dnf or compile from source
run flameshot gui

Screenshots or screen recordings

No response

System Information

GNU/Linux Fedora 38
Kernel: 6.4.14-200.fc38.x86_64

monitor: laptop ( no external monitors)
desktop environment: KDE, Window manager: KWin
Using Wayland

@hasanramp hasanramp added the Unconfirmed Bug The bug is not confirmed by anyone else. label Sep 17, 2023
@Asnvir
Copy link

Asnvir commented Oct 1, 2023

Does anybody know how to resolve the issue ?

@pj-connect
Copy link

I have a similar issue on Kubuntu 23.10 on wayland, and swaywm. I compiled from source from latest version using git clone.

Command: flameshot gui

Takes for few minutes to show errors

flameshot: error: Unable to detect desktop environment (GNOME? KDE? Sway? ...)
flameshot: error: Hint: try setting the XDG_CURRENT_DESKTOP environment variable.
flameshot: error: Unable to capture screen
flameshot: error: Unable to capture screen
qt.qpa.wayland: Wayland does not support QWindow::requestActivate()

When I use the suggested environment variable, and flameshot just seems to hang. I added a few environment variables, and I'm in the process of using then in different combinations.

@maremike
Copy link

maremike commented Jan 2, 2025

Having the same issue on:
Debian 12
Flameshot v12.1.0
KDE Plasma

@kbkozlev
Copy link

I'm not 100% sure if I understood your issue, but I had something where when I launched flameshot and my desktop would "shrink" to 1/4 of the screen and everything else would be black. If this is your issue, here is how I fixed it.

I'm running Fedora 41 KDE on Wayland, and I installed flameshot with dnf!
This bug seems to be related to the Wayland protocol, so you have to force flameshot to use "XWayland".
Find your menu entry, right click and select "edit"
image

Look for the location of the app
image

open a terminal and cd into that location and look for the flameshot.desktop file
image

edit the file and look for the "exec" line and enter the following
image
image

Save the file and restart flameshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Unconfirmed Bug The bug is not confirmed by anyone else.
Projects
None yet
Development

No branches or pull requests

5 participants