File dialog doesn't return current filter in Ubuntu 20.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdg-desktop-portal (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Ted Gould | ||
xdg-desktop-portal-gtk (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Focal |
Fix Released
|
Low
|
Ted Gould |
Bug Description
* Impact
The file dialog implementation doesn't return the current filter. It is in the spec and it is fixed in newer versions of the portals. But the 1.6.0 version doesn't return it.
This is an issue for Inkscape which uses the filter to select which file format someone wishes to save as if they override the defaults. This works well on Ubuntu 22.04.
* Test case
$ snap install --candidate inkscape.
In Inkscape if you just draw on the canvas and hit save a save dialog will appear. There is a selector at the bottom right that adjust which files you see, but also which format you want to save in. So if you make your file "test.pdf" and select "Portable Document Format (*.pdf)" in the selector you should get a PDF file. Before these patches you will get a file "test.pdf" which is actually an SVG file. After the patches you'll get a "test.pdf" that is actually a PDF.
* Regression potential
That's a change to the fileselector portal so check that opening and saving files in a few snaps and flatpaks still works as intended
summary: |
- File dialog doesn't return current filter in Ubuntu 20.02 + File dialog doesn't return current filter in Ubuntu 20.04 |
Changed in xdg-desktop-portal (Ubuntu): | |
status: | New → Fix Released |
importance: | Undecided → Low |
Changed in xdg-desktop-portal-gtk (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Fix Committed |
Changed in xdg-desktop-portal-gtk (Ubuntu Focal): | |
importance: | Undecided → Low |
Changed in xdg-desktop-portal (Ubuntu Focal): | |
importance: | Undecided → Low |
tags: |
added: verification-done verification-done-focal removed: verification-needed verification-needed-focal |
Attaching a debdiff. For what ever reason this doesn't seem to fix Inkscape. Though the D-Bus traffic is the same one 20.04 and 22.04 after this change.