Skip to content

Commit

Permalink
fix: use mktemp for temp files
Browse files Browse the repository at this point in the history
Might address justchokingaround#224
  • Loading branch information
jbara committed Sep 20, 2024
1 parent f4cc4d1 commit 88e2e05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lobster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 88e2e05

Please sign in to comment.