Flameshot not working with COSMIC Desktop Environment
Flameshot Version
Flameshot v12.1.0 (Debian 12.1.0-2build2) Compiled with Qt 5.15.12
Installation Type
Linux, MacOS, or Windows Package manager (apt, pacman, eopkg, choco, brew, ...)
Operating System type and version
Pop!_OS 24.04 LTS
Description
Running flameshot gui in the terminal doesn't launch Flameshot. Instead one gets the output shown below:
QSocketNotifier: Can only be used with threads started with QThread
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()
flameshot: info: Screenshot aborted.
Steps to reproduce
- Run
flameshot gui - Returns the output shown above
Screenshots or screen recordings
No response
System Information
- Operating system and version - Pop!_OS 24.04 LTS
- Monitor Configuration - Default
I can confirm this, but I think it might be an issue on Cosmic. I usually use this flatpak to check if the generic xdg-desktop-portal is working correctly: https://flathub.org/en/apps/com.belmoussaoui.ashpd.demo
That also fails to take a screenshot using the xdg portal leading me to believe the issue is with cosmic.
It seems that the version installed via apt (v12) is not up to date with the flathub version (v13). This is root cause as installing Flameshot via flathub works well with cosmic.
Ah yeah after I updated arch today I can use both the v13.1 flatpak and the master branch. There are some warnings I'll look into so leave this open for now.
Flameshot will partially work If you download a .deb packge from https://github.com/flameshot-org/flameshot/releases/tag/v13.1.0 You need to tick the checkbox for 'Use grim to capture screenshots'. However I am having trouble with the screenshot process, it also fails to save
Same here, grim does not seem to work it asks for wlroots or something, also when unchecking it, it worked once but only once for some reason and then it i is not saving now or adding to clipboard
Same here
Same here
Same here
I am also running Pop OS 24.04 with Cosmic, and I am seeing that Flameshot UI opens and works, but screenshots are not saved to the clipboard. I can save them as files.