diff options
Diffstat (limited to 'netsurf-wrapper-file')
| -rwxr-xr-x | netsurf-wrapper-file | 9 |
1 files changed, 9 insertions, 0 deletions
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 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | # When using netsurf to open a local file, if the file does not have a proper | ||
| 4 | # extension it is not interpreted as html. This wrapper script fixes this. | ||
| 5 | # Requires: netsurf | ||
| 6 | |||
| 7 | cp "$1" "$1.html" | ||
| 8 | netsurf "$1.html" | ||
| 9 | rm "$1.html" | ||
