The man page of sensible-browser shows
sensible-browser url
but /usr/lib/mime/packages/sensible-utils has a plain %s which means it
runs with a filename
sensible-browser filename
Is a browser program required to accept a filename on the command line
as well as url? Or should the sensible-browser mailcap entry turn a
filename into a url when invoking sensible-browser?
I struck this because netsurf-gtk happened to be my highest priority
browser as determined by sensible-browser, and it takes only a url on
the command line not a filename, leading to
see --debug foo.html
=>
- parsing parameter "foo.html"
- Reading mime.types file "/home/gg/.mime.types"...
- Reading mime.types file "/etc/mime.types"...
- extension "html" maps to mime-type "text/html"
- Reading mailcap file "/home/gg/.mailcap"...
- Reading mailcap file "/etc/mailcap"...
Processing file "foo.html" of type "text/html" (encoding=none)...
- checking mailcap entry "text/html; /usr/bin/sensible-browser '%s'; description=HTML Text; nametemplate=%s.html"
- program to execute: /usr/bin/sensible-browser '%s'
- executing: /usr/bin/sensible-browser 'foo.html'
Netsurf dialog box,
Could not resolve host foo.html