diff options
| author | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-10-23 23:20:01 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano.tronto@gmail.com> | 2021-10-23 23:20:01 +0200 |
| commit | 9e24bcb2eb847448c0d2c930efa56d229e660f67 (patch) | |
| tree | 44aa20ce898174c832577960f1e94b0453322af9 /open-file | |
| parent | 1ec940dbdb2eaf26ceda1ab53fdb8e4f26540a83 (diff) | |
| download | scripts-9e24bcb2eb847448c0d2c930efa56d229e660f67.tar.gz scripts-9e24bcb2eb847448c0d2c930efa56d229e660f67.zip | |
Changed html file opener
Diffstat (limited to '')
| -rwxr-xr-x | open-file | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -5,6 +5,8 @@ | |||
| 5 | # Use option -s devour to swallow or -s " " to open normally from terminal | 5 | # Use option -s devour to swallow or -s " " to open normally from terminal |
| 6 | # Use -t to specify mimetype | 6 | # Use -t to specify mimetype |
| 7 | # Requires: dmenu_path or similar (fallback) | 7 | # Requires: dmenu_path or similar (fallback) |
| 8 | # environment variables for default programs need to be set | ||
| 9 | # (I might remove this requirement at some point) | ||
| 8 | 10 | ||
| 9 | menu=${MENU:-dmenu} | 11 | menu=${MENU:-dmenu} |
| 10 | 12 | ||
| @@ -50,7 +52,7 @@ case "$mimetype" in | |||
| 50 | $launcher $SPREADSHEET "$1" | 52 | $launcher $SPREADSHEET "$1" |
| 51 | ;; | 53 | ;; |
| 52 | text/html | text/enriched) | 54 | text/html | text/enriched) |
| 53 | $launcher $BROWSER --new-window "$1" | 55 | $launcher $HTMLVIEWER "$1" |
| 54 | ;; | 56 | ;; |
| 55 | text/*) | 57 | text/*) |
| 56 | $launcher $XEDITOR "$1" | 58 | $launcher $XEDITOR "$1" |
