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: | Marek Kašík <mkasik> |
| Status: | NEW --- | 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: | 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. |