Package: netsurf-gtk
Version: 2.9-2
Severity: normal
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.
# Netsurf takes a URI on the command line. Must turn a filename into
# file://... including escaping any "%"s in the filename etc.
text/html; /usr/bin/netsurf-gtk `perl -MURI::file -e 'print
URI::file->new_abs($ARGV[0])' %s`; description=HTML Text; test=test -n
"$DISPLAY"
application/xhtml+xml; /usr/bin/netsurf-gtk `perl -MURI::file -e 'print
URI::file->new_abs($ARGV[0])' %s`; description=XHTML Text; test=test -n
"$DISPLAY"
text/xml; /usr/bin/netsurf-gtk `perl -MURI::file -e 'print
URI::file->new_abs($ARGV[0])' %s`; description=XML Text; test=test -n "$DISPLAY"
# "priority=2" for images here the same as other web browsers use and
# which is below dedicated image viewer programs at default priority=5.
# Types GIF,PNG,JPEG same as /usr/share/applications/netsurf-gtk.desktop.
# Also ms-dos BMP works.
#
image/png; /usr/bin/netsurf-gtk `perl -MURI::file -e 'print
URI::file->new_abs($ARGV[0])' %s`; description=PNG Image; test=test -n
"$DISPLAY"; priority=2
image/jpeg; /usr/bin/netsurf-gtk `perl -MURI::file -e 'print
URI::file->new_abs($ARGV[0])' %s`; description=JPEG Image; test=test -n
"$DISPLAY"; priority=2
image/gif; /usr/bin/netsurf-gtk `perl -MURI::file -e 'print
URI::file->new_abs($ARGV[0])' %s`; description=GIF Image; test=test -n
"$DISPLAY"; priority=2
image/x-ms-bmp; /usr/bin/netsurf-gtk `perl -MURI::file -e 'print
URI::file->new_abs($ARGV[0])' %s`; description=BMP Image; test=test -n
"$DISPLAY"; priority=2
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-486
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash
Versions of packages netsurf-gtk depends on:
ii libc6 2.17-92
ii libcairo2 1.12.2-3
ii libcurl3 7.32.0-1
ii libgdk-pixbuf2.0-0 2.28.2-1
ii libglade2-0 1:2.6.4-1
ii libglib2.0-0 2.36.4-1
ii libgtk2.0-0 2.24.20-1
ii libjpeg8 8d-1
ii libpango1.0-0 1.32.5-5+b1
ii libpng12-0 1.2.49-4
ii librsvg2-2 2.36.4-2
ii libssl1.0.0 1.0.1e-3
ii libxml2 2.9.1+dfsg1-3
ii netsurf-common 2.9-2
ii zlib1g 1:1.2.8.dfsg-1
Versions of packages netsurf-gtk recommends:
ii mime-support 3.54
netsurf-gtk suggests no packages.
-- no debconf information