Gnome: all screenshot tools are messed up... Because of Wayland?

I’ve never really used Wayland before, but so far it only brought me trouble…

I need a more complex screenshot tool than Gnome’s default, but everytime I install one (so far I’ve tried Flameshot, Shutter and Spectacle), each time I get error messages involving Wayland. I couldn’t find any way around…

Are there solutions at hand? Again, I’m seriously considering going back to Xorg… But I’m afraid it would break some things I have installed on Wayland… (would it?)

Thanks!

It would be nice if you wrote what specific error you get. We don’t have telepathy.
I don’t use GNOME, but KDE Spectacle works great for Wayland. Perhaps problems are related to the implementation of Gnome, not Wayland Protocol

Hi @ash13,

I use Wayland and use Flameshot without a problem. Albeit with KDE and not Gnome.

See if there are any error in the logs:

journalctl --boot=0 --grep=flameshot --no-pager
  • The --no-pager formats the output nicely for use here, on the forum;
  • the --boot=0 argument limits the output to log messages from current boot. This can be adjusted to -1 for the boot before that, -2 to the boot before that, and so on and so forth; and
  • the --grep= argument searches through the log files for any mention of “flameshot.”

Provide the output here if you wish us to take a look.

Another option to obtain potentially useful information, is to run it from the terminal emulator and copy-and-pate any output it gives there…

I’m sorry, I was in a rush and forgot to give the outputs. Here:

> flameshot gui                                     
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.

Wether or not I put this env var in my .zshrc I get this error. And as I said, when I get to select the area to capture, the screen is zoomed to at least 200%, and so half of it is off the screen.

> journalctl --boot=0 --grep=flameshot --no-pager
juin 14 14:19:43 take polkitd[685]: Operator of unix-process:60988:467969 successfully authenticated as unix-user:tome to gain TEMPORARY authorization for action org.manjaro.pamac.commit for system-bus-name::1.243 [pamac install flameshot] (owned by unix-user:tome)
juin 14 14:29:14 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:29:27 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:29:27 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:30:17 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:30:17 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:30:22 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:30:24 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:30:24 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:30:27 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:30:27 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:32:25 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:32:25 take org.flameshot.Flameshot.desktop[61244]: flameshot: error: Unable to capture screen
juin 14 14:37:03 take systemd[1404]: app-gnome-org.flameshot.Flameshot-61244.scope: Consumed 1.716s CPU time.
juin 14 14:37:29 take gnome-shell[65340]: flameshot: error: Unable to capture screen
juin 14 14:37:29 take gnome-shell[65340]: flameshot: error: Unable to capture screen
juin 14 14:37:29 take gnome-shell[65340]: flameshot: info: Screenshot aborted.
juin 14 14:38:00 take gnome-shell[65360]: flameshot: error: Unable to capture screen
juin 14 14:38:00 take gnome-shell[65360]: flameshot: error: Unable to capture screen
juin 14 14:38:00 take gnome-shell[65360]: flameshot: info: Screenshot aborted.
juin 14 14:38:10 take gnome-shell[65375]: flameshot: error: Unable to capture screen
juin 14 14:38:10 take gnome-shell[65375]: flameshot: error: Unable to capture screen
juin 14 14:38:10 take gnome-shell[65375]: flameshot: info: Screenshot aborted.
juin 14 14:40:02 take gnome-shell[67164]: flameshot: error: Unable to capture screen
juin 14 14:40:02 take gnome-shell[67164]: flameshot: error: Unable to capture screen
juin 14 14:40:02 take gnome-shell[67164]: flameshot: info: Screenshot aborted.
juin 14 14:58:57 take polkitd[685]: Operator of unix-process:71928:703832 successfully authenticated as unix-user:tome to gain TEMPORARY authorization for action org.manjaro.pamac.commit for system-bus-name::1.627 [pamac remove flameshot] (owned by unix-user:tome)
juin 14 15:31:23 take polkitd[685]: Operator of unix-process:72846:898333 successfully authenticated as unix-user:tome to gain TEMPORARY authorization for action org.manjaro.pamac.commit for system-bus-name::1.661 [pamac install flameshot] (owned by unix-user:tome)

I hope this will help.

EDIT: X11 doesn’t have this problem, so I’m going back to it, at least until we find a solution!

You have to set it someplace else. If you set it in .zshrc, then it’s only set inside your terminal session. Did you try with running flameshot in the terminal with this setting?

https://wiki.archlinux.org/title/Environment_variables#Per_Wayland_session

Make sure you have the correct xdg-desktop-portals installed. pacman -Qs xdg-desktop should list

local/xdg-desktop-portal
local/xdg-desktop-portal-gnome

I don’t know about the other apps but there is a massive issue thread about flameshot + GNOME at Flameshot unable to capture screen when triggered through Gnome shortcut · Issue #3365 · flameshot-org/flameshot · GitHub . Maybe you’ll find a solution there.

Spectacle works perfectly for me on KDE Plasma + Wayland.

https://packages.manjaro.org/?query=telepathy
Yes, we have :innocent:

1 Like