From aa6d71ce68e7cd50cb2cdfab974e88a95c8df46b Mon Sep 17 00:00:00 2001 From: Kevin Velghe Date: Thu, 29 Sep 2016 20:58:21 +0200 Subject: [PATCH] Fix viewsource userscript For months I've been wondering what created these files in my home directory ... --- misc/userscripts/qutebrowser_viewsource | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/userscripts/qutebrowser_viewsource b/misc/userscripts/qutebrowser_viewsource index 535855bb3..b528c41e8 100755 --- a/misc/userscripts/qutebrowser_viewsource +++ b/misc/userscripts/qutebrowser_viewsource @@ -24,9 +24,9 @@ # Caveat: Does not use authentication of any kind. Add it in if you want it to. # -path=/tmp/qutebrowser_$(mktemp XXXXXXXX).html +path=$(mktemp --tmpdir qutebrowser_XXXXXXXX.html) -curl "$QUTE_URL" > $path +curl "$QUTE_URL" > "$path" urxvt -e vim "$path" rm "$path"