From 1ec940dbdb2eaf26ceda1ab53fdb8e4f26540a83 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sat, 23 Oct 2021 23:19:42 +0200 Subject: added netsurf wrapper for opening html file --- netsurf-wrapper-file | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 netsurf-wrapper-file (limited to 'netsurf-wrapper-file') diff --git a/netsurf-wrapper-file b/netsurf-wrapper-file new file mode 100755 index 0000000..1fc9ea0 --- /dev/null +++ b/netsurf-wrapper-file @@ -0,0 +1,9 @@ +#!/bin/sh + +# When using netsurf to open a local file, if the file does not have a proper +# extension it is not interpreted as html. This wrapper script fixes this. +# Requires: netsurf + +cp "$1" "$1.html" +netsurf "$1.html" +rm "$1.html" -- cgit v1.3