Files manager force file extension

Yubin Ruan ablacktshirt at gmail.com
Sat May 13 23:29:29 UTC 2017


On Sat, May 13, 2017 at 04:03:13PM +0200, Petter Adsen wrote:
> On 13/05/17 20:55, Yubin Ruan wrote:
> > On Sat, May 13, 2017 at 08:43:07AM +0100, Colin Law wrote:
> >> On 13 May 2017 5:34 a.m., "Yubin Ruan" <ablacktshirt at gmail.com> wrote:
> >>> By default, I get `Yahoo.html' as the filename to save. I can change the
> >>> `Yahoo.html' to any name like `this-is-yahoo.html'. But I CANNOT save it to
> >>> something like `Yahoo.webpage' because the file manager will automatically
> >>> add a "html" file extension for me, thus making it `Yahoo.webpaeg.html'
> >>> eventually.
> >>
> >> I don't think that is the file manager (Nautilus), I think it is the
> >> browser. Which browser are you using? Using Firefox (on Ubuntu 16.10) I see
> >> more than two options and do not get the forced extension.
> > 
> > I see. That's Chrome's problem.
> 
> With Chromium I see the behavior you describe, it's using a standard GTK
> file chooser dialog with those two alternatives. I can still change the
> actual filename and extension by editing it in the field at the top of
> the dialog, and I would expect Chrome to behave in the same way.

Yes one can change the file name in Chromium (and Goole Chrome). The problem is,
I am using some application (called `Typora') which is based on Chromium, and it
forces users to use some particular file extension in the file chooser when I try
to export a file within it. I try to export a file as HTML from its editor, but
it force the filename to end with a ".html" suffix.

I have created a issue in its repo on Github[1], but I am not sure whether they
will be interested in looking into it.


[1]: https://github.com/typora/typora-issues/issues/699

---
Yubin




More information about the ubuntu-users mailing list