git.lucas.co / fontpreview
git clone https://git.lucas.co/fontpreview.git

commita16c2c8c3e124795fb0c0d33adae6149fe041de4
parent8da6935b1b
authorBirnthaler Martin <[email protected]>
date2020-02-08 16:30
elaborate mktemp usage with a comment

 fontpreview | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/fontpreview b/fontpreview
index 69fb3aa..c1113a8 100755
--- a/fontpreview
+++ b/fontpreview
@@ -4,6 +4,8 @@
 #
 # Dependencies: sxiv, imagemagick, xdotool, fzf
 
+# Use mktemp to create temporary files that won't
+# collide with any other application's tmp files.
 PIDFILE="$(mktemp --tmpdir fontpreview_XXXXXXXX.pid)"
 FONT_PREVIEW="$(mktemp --tmpdir fontpreview_XXXXXXXX.png)"
 TERMWIN_IDFILE="$(mktemp --tmpdir fontpreview_XXXXXXXX.termpid)"