Bug 402256

Summary: Save dialog in firefox with GTK_USE_PORTAL=1 doesn't paste file name automatically
Product: [Plasma] xdg-desktop-portal-kde Reporter: sunwebrw
Component: generalAssignee: Jan Grulich <jgrulich>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, jgrulich, kde
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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