flameshot icon indicating copy to clipboard operation
flameshot copied to clipboard

Flameshot not working with COSMIC Desktop Environment

Open logz254 opened this issue 3 months ago • 6 comments

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

  1. Run flameshot gui
  2. Returns the output shown above

Screenshots or screen recordings

No response

System Information

  1. Operating system and version - Pop!_OS 24.04 LTS
  2. Monitor Configuration - Default

logz254 avatar Sep 26 '25 12:09 logz254

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.

borgmanJeremy avatar Sep 26 '25 21:09 borgmanJeremy

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.

logz254 avatar Sep 27 '25 05:09 logz254

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.

borgmanJeremy avatar Sep 27 '25 12:09 borgmanJeremy

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

aindriu80 avatar Sep 29 '25 14:09 aindriu80

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

Mehdi-YC avatar Nov 01 '25 21:11 Mehdi-YC

Same here

marcopiraccini avatar Nov 24 '25 05:11 marcopiraccini

Same here

norbertogf avatar Dec 11 '25 15:12 norbertogf

Same here

SennenHyorou avatar Dec 17 '25 15:12 SennenHyorou

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.

skostojohn avatar Dec 18 '25 15:12 skostojohn