From 88e2e05123312f31fcf79be21f30454c944f2cb4 Mon Sep 17 00:00:00 2001 From: jbara Date: Fri, 20 Sep 2024 18:26:06 +0100 Subject: [PATCH] fix: use mktemp for temp files Might address #224 --- lobster.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lobster.sh b/lobster.sh index 663ab65..a555e6b 100755 --- a/lobster.sh +++ b/lobster.sh @@ -5,9 +5,9 @@ LOBSTER_VERSION="4.3.3" ### General Variables ### config_file="$HOME/.config/lobster/lobster_config.sh" lobster_editor=${VISUAL:-${EDITOR}} -tmp_dir="${TMPDIR:-/tmp}/lobster" && mkdir -p "$tmp_dir" +tmp_dir="$(mktemp -d --suffix=lobster)" lobster_socket="${TMPDIR:-/tmp}/lobster.sock" # Used by mpv (check the play_video function) -lobster_logfile="${TMPDIR:-/tmp}/lobster.log" +lobster_logfile="$(mktemp --suffix=lobster.log)" applications="$HOME/.local/share/applications/lobster" # Used for external menus (for now just rofi) images_cache_dir="$tmp_dir/lobster-images" # Used for storing downloaded images of movie covers