From 65c7f666aab1a8839cb75660f694dd0561e29099 Mon Sep 17 00:00:00 2001 From: B14CK313 Date: Fri, 22 Jan 2021 02:10:24 +0100 Subject: [PATCH] Fixed path returned by temp_filename not writeable The path returned by temp_filename was not writeable on UNIX (and possibly other OS). This lead to the gitstatus plugin not working. The proposed change fixes this by using the USERDIR variable instead of EXEDIR --- data/core/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/core/init.lua b/data/core/init.lua index f022f5e2..29a1db0d 100644 --- a/data/core/init.lua +++ b/data/core/init.lua @@ -443,7 +443,7 @@ end function core.temp_filename(ext) temp_file_counter = temp_file_counter + 1 - return EXEDIR .. PATHSEP .. temp_file_prefix + return USERDIR .. PATHSEP .. temp_file_prefix .. string.format("%06x", temp_file_counter) .. (ext or "") end