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 --- Makefile | 1 + netsurf-wrapper-file | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100755 netsurf-wrapper-file diff --git a/Makefile b/Makefile index 827f0bd..dcba315 100644 --- a/Makefile +++ b/Makefile @@ -16,6 +16,7 @@ SCRIPTS = addressgrep \ dunst-toggle \ mail-checknow \ mail-compose \ + netsurf-wrapper-file \ notify-battery \ notify-time \ open-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