This bug was fixed in the package xdg-desktop-portal-gtk -
1.6.0-1ubuntu1
---------------
xdg-desktop-portal-gtk (1.6.0-1ubuntu1) focal; urgency=medium
* Return the current filter selected from file dialogs
- d/patches/filechooser-current-filter.patch
(lp: #1973564)
-- Ted Gould <[email protected]> Wed, 18 May 2022 15:30:59 +0200
** Changed in: xdg-desktop-portal-gtk (Ubuntu Focal)
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xdg-desktop-portal-gtk in Ubuntu.
https://bugs.launchpad.net/bugs/1973564
Title:
File dialog doesn't return current filter in Ubuntu 20.04
Status in xdg-desktop-portal package in Ubuntu:
Fix Released
Status in xdg-desktop-portal-gtk package in Ubuntu:
Fix Released
Status in xdg-desktop-portal source package in Focal:
Fix Released
Status in xdg-desktop-portal-gtk source package in Focal:
Fix Released
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/1973564/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp