I am a developer for the screenshot application flameshot . We are gearing up for a new release, but I am having issues with our snap version on gnome, tested on Ubuntu 24.04. The flatpak and from source build do not have this issue.
I’ve tested in --devmode with dev confinement and have the same issue, so I don’t think the issue is related to confinement.
The issue I am having is when the application goes to take a screenshot, a dbus error is returned saying “only the focused app is allowed to show a system access dialog”. This is the system dialog to initially grant screenshot permissions on gnome.
You can see in the attached screenshot the flameshot application is in the foreground so I am not sure why I’m getting this error. Again this does not happen in ubuntu 24.04 with the flatpak version of the same source code.
Any troubleshooting tips are appreciate as I’ve pretty much run out of ideas.
I tested the Flatpak version of Flameshot on Ubuntu 24.04 with Gnome, and by default it also fails to take screenshots.
So I assume the problem is not specifically the Snap version.
I was only able to use Flameshot on Ubuntu 24.04 with Gnome when I used the native version, where a window appeared asking me to accept that Flameshot can take screenshots.
I also tested the Snap version of Flameshot on Ubuntu Budgie 25.04, using Wayland thanks to Labwc, and there I had no problems using the Snap version of Flameshot.
I tested Flameshot Snap on KDE Neon, a notification was displayed asking me to click on the Flameshot icon, after that it showed a window asking if I wanted to let Flameshot take screenshots of the screen.
In Gnome this does not happen, the notification appears, but the system does not ask if I want to allow Flameshot to take screenshots.
I tested with the Flatpak version and with the Snap version, both have the same problem.
Sorry for the delayed response. When you tested the flatpak did you build from source out of our repo or use the flathub? What is on flathub is out of date (which is why we are working to get a new release out the door).
Apologies for the mistake. It turns out I tested the flatpak on Arch not on Ubuntu. I can confirm the issue happens on flatpak and snap on ubuntu. However the same flatpak does not present an issue on Arch. I’ll continue to troubleshoot on my end.
If you think of what could be causing this I’d love the help but I’m going to close this as its clearly not a snap issue.
I tested it again and now it simply isn’t opening, the following things appear in the terminal:
Warning: Schema “org.gnome.system.locale” has path “/system/locale/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy” has path “/system/proxy/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.http” has path “/system/proxy/http/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.https” has path “/system/proxy/https/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.ftp” has path “/system/proxy/ftp/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Warning: Schema “org.gnome.system.proxy.socks” has path “/system/proxy/socks/”. Paths starting with “/apps/”, “/desktop/” or “/system/” are deprecated.
Gtk-Message: 20:24:45.473: Failed to load module "xapp-gtk3-module"
Gtk-Message: 20:24:45.473: Failed to load module "appmenu-gtk-module"
SingleApplication: Unable to create block.
SingleApplication: QSharedMemory::PermissionDenied "QSharedMemoryPrivate::initKey: unable to set key on lock (QSystemSemaphore::handle: permission denied)"
It’s a strange situation, using only the flameshot command, it doesn’t open, but if for example, I use the flameshot launcher command, it opens by executing the command without problems.
In this case, it opens and does what I asked in the command, but after that, it doesn’t stay open.
And for some reason the Snap version is not translated to pt-BR.