loopier / animatron-godot3

Yet another implementation of Animatron, but in Godot
GNU General Public License v3.0
17 stars 1 forks source link

Can't open local files in the editor on macOS (when running from the app icon) #51

Open totalgee opened 1 year ago

totalgee commented 1 year ago

Repro steps (on macOS, after running the app normally by double-clicking it):

// Execute this line:
/editor/open docs/tutorial-controls.osc

(or any other file in the resource directory)

You will get an empty editor (you won't have the contents of that file, although it does exist).

totalgee commented 1 year ago

Fixed by a8d033d. At least, it's an interim solution. It will retry explicitly, when opening files with locally-specified paths (like docs/tutorial-controls.osc), after prepending the executable location. Also, it will no longer clear the editor when it fails to open a file!

We should rethink how the assets directory is specified (so you don't need to have them in the same directory as the executable), but that's a separate issue.

totalgee commented 1 year ago

Also added 00747f4 (to make it less verbose). Also updated the README with info about how to run Animatron on macOS, dealing with Gatekeeper and quarantine flags.