#723614 netsurf-gtk: /etc/mailcap of filenames

Package:
netsurf-gtk
Source:
netsurf
Description:
small web browser with CSS support for GTK
Submitter:
Kevin Ryde
Date:
2014-06-30 22:11:44 UTC
Severity:
normal
#723614#5
Date:
2013-09-17 22:54:53 UTC
From:
To:
mime-support turns /usr/share/applications/netsurf-gtk.desktop into
entries in /etc/mailcap like

    text/html; netsurf-gtk %s; test=test -n "$DISPLAY"

but they don't work since netsurf requires a url on the command line,
not a filename.

I see bug 577136 asks for filenames on the command line, but unless or
until that's done then perhaps a debian/mime file (to become
/usr/lib/mime/packages/netsurf-gtk) like below.  It uses liburi-perl for
filename->uri, which would create a dependency on that package.
Or perhaps there's an easier way.

#723614#10
Date:
2013-09-18 10:53:48 UTC
From:
To:
I wrote:

Oops, the %s should be quoted.  run-mailcap defends against shell chars
in the filename but not against spaces.