Bug 2036411

Summary: Can't save screenshot if XDG_PICTURES_DIR contains non-Latin characters
Product: [Fedora] Fedora Reporter: vanheck <vanheck>
Component: flameshotAssignee: rpm-software-management
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: daniel.mach, jmracek, jrohel, mblaha, mhatina, packaging-team-maint, pkratoch, rpm-software-management, vitaly, vmukhame
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-01-03 23:17:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description vanheck@seznam.cz 2021-12-31 22:38:42 UTC
Description of problem:
Cannot capture the screen after `dnf system-upgrade` from f34 to f35. More info here: https://github.com/flameshot-org/flameshot/issues/2211


Version-Release number of selected component (if applicable):
Fedora version: f35 (upgraded form f34)
Gnome: 41.2
Flameshot: 0.10.2-3.fc35


How reproducible:

Steps to Reproduce:
1. Install fedora 34
2. `dnf install flameshot`
3. `dnf system-ugprade` (f35)
4. run `flameshot gui`
5. accept the share screen

Actual results:
- gnome popup: "Unable to capture screen"


Expected results:
Take and edit screenshot.


Additional info:
https://github.com/flameshot-org/flameshot/issues/2211

Comment 1 Vitaly 2022-01-01 10:55:17 UTC
This is a known issue. You must install the xdg-desktop-portal-gnome package:

sudo dnf install xdg-desktop-portal-gnome

*** This bug has been marked as a duplicate of bug 1643327 ***

Comment 2 Vitaly 2022-01-01 10:56:32 UTC

*** This bug has been marked as a duplicate of bug 2020249 ***

Comment 3 vanheck@seznam.cz 2022-01-01 10:58:19 UTC
I have already installed this package:

$ dnf list installed | grep xdg-desktop-portal
xdg-desktop-portal.x86_64                          1.10.1-2.fc35                          @updates                  
xdg-desktop-portal-gnome.x86_64                    41.1-1.fc35                            @fedora                   
xdg-desktop-portal-gtk.x86_64                      1.10.0-2.fc35                          @updates                  

$ dnf list installed | grep flameshot
flameshot.x86_64                                   0.10.2-3.fc35                          @updates


It doesn't help.

Comment 4 Vitaly 2022-01-01 13:16:17 UTC
Sorry, but I can't do anything with this. Please ask upstream to fix this (both GNOME and Flameshot).

Comment 5 vanheck@seznam.cz 2022-01-01 13:20:12 UTC
But the problem is that pure instalation of Fedora 35 and `dnf install flameshot` works well. But the `dnf system-upgrade` broke this app...

Comment 6 Vitaly 2022-01-01 13:30:40 UTC
Ubuntu 21.10 has the same problem: https://github.com/flameshot-org/flameshot/issues/2199

Please report this issue directly to GNOME: https://gitlab.gnome.org/GNOME/mutter/-/issues

Comment 7 Vitaly 2022-01-01 13:31:41 UTC
> But the problem is that pure instalation of Fedora 35 and `dnf install flameshot` works well. But the `dnf system-upgrade` broke this app...

Can you try downgrading of the mutter package?

Comment 8 vanheck@seznam.cz 2022-01-01 18:41:34 UTC
Ok, I execute dnf downgrade mutter - it was downgraded from mutter-41.2-2.fc35.x86_64  to mutter-41.0-4.fc35.x86_64 and then logout the session. But it doesn't help.

Comment 9 vanheck@seznam.cz 2022-01-01 19:03:44 UTC
I've just opened the same issue there: https://gitlab.gnome.org/GNOME/mutter/-/issues/2072

Comment 10 vanheck@seznam.cz 2022-01-01 19:35:34 UTC
I think, that https://github.com/flameshot-org/flameshot/issues/2199 is not the same issue, due to I have already installed the `xdg-desktop-portal-gnome`.

Comment 11 vanheck@seznam.cz 2022-01-02 12:49:28 UTC
Issue was created also here: https://gitlab.gnome.org/GNOME/mutter/-/issues/2072

Comment 12 Vitaly 2022-01-03 10:08:37 UTC
Thanks for investigating this issue. Let's wait for the upstream to fix it and then backport changes to current branch.

Workaround:
Set save path to any custom directory without non-Latin characters.

Comment 13 vanheck@seznam.cz 2022-01-03 23:17:24 UTC
This bug could be closed, the problem is in Flameshot and is solved in this pull request: https://github.com/flameshot-org/flameshot/pull/2222 

Thank you Vitaly for your help.