Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
e92a14ac
Unverified
Commit
e92a14ac
authored
Apr 09, 2020
by
bruvzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore process serial number (`-psn_...`) command line argument passed by macOS Gatekeeper.
parent
4f5ad073
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
main.cpp
main/main.cpp
+8
-0
No files found.
main/main.cpp
View file @
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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment