Unverified Commit 4c36feb1 by Rémi Verschelde Committed by GitHub

Merge pull request #37719 from bruvzg/macos_ignore_psn

Ignore process serial number argument passed by macOS Gatekeeper.
parents c2f0d58c e92a14ac
......@@ -478,6 +478,14 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
I = args.front();
while (I) {
#ifdef OSX_ENABLED
// Ignore the process serial number argument passed by macOS Gatekeeper.
// Otherwise, Godot would try to open a non-existent project on the first start and abort.
if (I->get().begins_with("-psn_")) {
I = I->next();
continue;
}
#endif
List<String>::Element *N = I->next();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment