Skip to content

Commit

Permalink
Fixed Mac storage path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tmoroney committed Dec 29, 2024
1 parent 6f9b03f commit dfc8675
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions AutoSubs-App/src-tauri/resources/AutoSubs V2.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

1 comment on commit dfc8675

@Gwolo-Julius
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Weldone!

Please sign in to comment.