Closed n0samu closed 2 years ago
This is caused by Gatekeeper quarantining the application. You need to either use curl to download Flashpoint or remove the quarantine attribute from the downloaded tar.xz file before extracting. And you need to extract the tar.xz file using Archive Utility, not a third-party program. This info is from the Mac Support wiki page.
OK, I see. Extracting took me more time but finally Archive Utility extracted it with success. Thanks!
Next time please do not delete your messages. It makes it impossible for future readers to follow the conversation.
Describe the bug On MacOS, the launcher is unable to load its own preferences/config when opened directly because it tries to read the config.json file from its working directory. On MacOS, the working directory of the executable is inside of the app package, which is not where the config,json file is stored. Also, relative Flashpoint Paths (set in the Config tab) are interpreted as relative to the current working directory, rather than being relative to the directory where the app package is located (the main Launcher directory).
I believe that this problem is caused by using
app.getPath('exe')
to get the path to the launcher's containing folder.app.getAppPath()
should be used instead because it has the correct behavior on all platforms: https://github.com/electron/electron/blob/main/docs/api/app.md#appgetapppathTo Reproduce Steps to reproduce the behavior:
Expected behavior Flashpoint should try to read its config file from the main Launcher folder, not from its app package. And relative Flashpoint Paths should be relative to the Launcher directory, as they are on Windows.
Desktop (please complete the following information):