Bug 402256 - Save dialog in firefox with GTK_USE_PORTAL=1 doesn't paste file name automatically
Summary: Save dialog in firefox with GTK_USE_PORTAL=1 doesn't paste file name automati...
Status: RESOLVED DUPLICATE of bug 399889
Alias: None
Product: xdg-desktop-portal-kde
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Jan Grulich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-17 18:58 UTC by sunwebrw
Modified: 2018-12-19 10:00 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sunwebrw 2018-12-17 18:58:19 UTC
KDE's portal-kde and firefox is nice first steps but so far it doesn't work properly.
Try to download some file(for example ZIP file here https://github.com/artistCDMJ/ez_paint)
1) It says it will download file and give it a name. However once you actually want to save it the filename is lost, you have to type it yourself.
2) If you don't specify file extension and it recognized that the file you're saving is ZIP(for example) it saves the file with "[zZ][iI][pP]" extension instead of "zip".

I don't if its related to 388090 bug.
Comment 1 Jan Grulich 2018-12-18 13:21:25 UTC
Hi,

both KDE and Qt dialogs do not support Gtk's advanced filters, where they can set regular expressions, like the one you mentioned, which results into this weird file naming. There is nothing wrong about this in portals and I don't really want to write workarounds for that. They support this because their file dialogs are case insensitive (regarding file suffixes) so that's probably why KDE/Qt file dialogs don't support this.
Comment 2 Jan Grulich 2018-12-18 14:59:28 UTC
I don't want to write workarounds, but it looks I will have to as this is probably the only way to make it work.
Comment 3 Kai Uwe Broulik 2018-12-18 15:13:45 UTC

*** This bug has been marked as a duplicate of bug 399889 ***
Comment 4 Jan Grulich 2018-12-19 10:00:42 UTC
Proposed workaround: https://phabricator.kde.org/D17677