git clone https://git.lucas.co/fontpreview.git
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)"