Bug 2183356
| Summary: | Flatpak build: when you use Evince's Open menu to open a file, Save as... does not save to the same directory you opened it from | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Adam Williamson <awilliam> |
| Component: | evince | Assignee: | GNOME SIG Unassigned <gnome-sig> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 39 | CC: | feborges, gnome-sig, mclasen, mkasik, rstrode, sandmann |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2024-04-22 23:50:17 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
Adam Williamson
2023-03-30 22:54:37 UTC
The "Open" button launches a FileChooser Portal[0], which doesn't expose the filesystem to the app. So the file path Evince gets comes from the portal (run/user/100/doc/...). The "Save as" dialog uses g_file_get_parent()[1] to set the current target folder for saving, hence what you are experiencing. To solve this issue the FileChooser portal would have to expose the current_dir to the sandbox, and that is tricky for various reasons discussed in https://github.com/flatpak/xdg-desktop-portal/pull/874 [0] https://gitlab.gnome.org/GNOME/evince/-/blob/main/shell/ev-window.c#L2887 [1] https://gitlab.gnome.org/GNOME/evince/-/blob/main/shell/ev-window.c#L3195 This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle. Changing version to 39. This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component. It looks like this got fixed, maybe by https://github.com/flatpak/xdg-desktop-portal/pull/1045 - if I drop the workaround I put into openQA's test for this bug, the test now passes. |