https://bugs.kde.org/show_bug.cgi?id=397069

Kai Uwe Broulik <k...@privat.broulik.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k...@privat.broulik.de

--- Comment #2 from Kai Uwe Broulik <k...@privat.broulik.de> ---
The problem is as follows:

Chromium has a "HTML only" and "HTML full page" filter that both have *.htm as
their extension. When it generates the kdialog call it translates the extension
to a mime type and ends up with text/html for both and you end up with just
"HTML Document".

A more correct approach would be passing a custom filter string to kdialog:
kdialog --getsavefilename ~ "Webpage, Complete (*.htm *.html)|Webpage, HTML
Only (*.htm *.html)"

Which leads us to the other problem: KDialog only returns the chosen file
name(s) but not the chosen mime filter as having two file types which are the
same isn't usually what you do.

The only solution I can see is adding a cmdline arg to kdialog
("--print-selected-filter") or something and then adjusting Chrome to use that
method if a kdialog version supporting that flag is installed.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to