flatpak / xdg-desktop-portal

Desktop integration portal
https://flatpak.github.io/xdg-desktop-portal/
GNU Lesser General Public License v2.1
550 stars 184 forks source link

[Bug] Flameshot doesn't work correctly besides the fact that the Flatpak version doesn't work at all #1317

Open lxwulf opened 4 months ago

lxwulf commented 4 months ago

Operating System

Fedora 39

XDG Desktop Portal version

Other

XDG Desktop Portal version (Other)

1.18.2

Desktop Environment

GNOME

Desktop Environment (Other)

No response

Expected Behavior

Working Flameshot application with shortcut key (PrtScr).

Current Behavior

As already mentioned here as example, Flameshot doesn't work correctly. The system is updated to the newest packages.

From the terminal, I can start Flameshot with flameshot &. I can start it with a click on the status bar icon. The shortcut key, in my case PrtScr doesn't work. It spawns a new process with again says Unable to capture screen. No permissions asking or something else from GNOME.

The flatpak version of Flameshot doesn't work at all. It says Unable to capture screen. Also, without any permission asking from GNOME.

Additional references: Flameshot issue 2868

They say the problem relays on the xdg-desktop-portal together with GNOME. I can't prove this exactly just wanna to help to resolve this problem. :v:

Steps to Reproduce

Flatpak version:

  1. Install it with flatpak install flameshot
  2. Execute it.
  3. Click on the icon in the status bar.
  4. Notification appears Unable to capture the screen.

RPM version:

  1. Install it with dnf install flameshot
  2. Execute it from the app menu.
  3. Click on the icon in the status bar.
  4. Notification appears Unable to capture the screen.
  5. Kill the flameshot process.
  6. Open a new terminal and execute flameshot &.
  7. Click on the icon in the status bar.
  8. You may now get asked for permissions, ofcourse we need to allow this.
  9. Now you can use flameshot with a click on the icon in the status bar.

Shortcut setup still doesn't work.

Anything else we should know?

No response

Mikenux commented 1 month ago

Hello @lxwulf!

It is known. See https://github.com/flatpak/xdg-desktop-portal/issues/1093

lxwulf commented 1 month ago

Okay, thank you, do you have any updates or information how it goes? I still have no working screenshot application and in the link of you there is also not that much information. :confused:

Mikenux commented 1 month ago

Unfortunately, I don't know anything.