From dfc8675452c102459595c27cc218576fafda73cd Mon Sep 17 00:00:00 2001 From: Tom Moroney Date: Sun, 29 Dec 2024 01:13:02 +0000 Subject: [PATCH] Fixed Mac storage path issue --- AutoSubs-App/src-tauri/resources/AutoSubs V2.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/AutoSubs-App/src-tauri/resources/AutoSubs V2.lua b/AutoSubs-App/src-tauri/resources/AutoSubs V2.lua index a153c1f..4175d3a 100644 --- a/AutoSubs-App/src-tauri/resources/AutoSubs V2.lua +++ b/AutoSubs-App/src-tauri/resources/AutoSubs V2.lua @@ -87,13 +87,11 @@ elseif os_name == "OSX" then -- Use the C system function to execute shell commands on macOS ffi.cdef [[ int system(const char *command); ]] - storage_path = os.getenv("HOME") .. - "/Library/Application Support/Blackmagic Design/DaVinci Resolve/Fusion/Scripts/Utility/AutoSubs/" - -- Get path to the main AutoSubs app and modules - local install_path = assert(read_file(storage_path .. "install_path.txt")) - main_app = string.gsub(install_path, "\n", "") .. "/AutoSubs.app" - modules_path = install_path .. "/AutoSubs.app/Contents/Resources/resources/modules/" + local install_path = "/Applications" + main_app = install_path .. "/AutoSubs.app" + modules_path = main_app .. "/Contents/Resources/resources/modules/" + storage_path = main_app .. "/Contents/Resources/resources/AutoSubs/" print("Main App Path: ", main_app) -- MacOS commands to open and close main app