Viewing Issue Simple Details
[ Jump to Notes ]
[ Wiki ]
|
[ View Advanced ]
[ Issue History ]
[ Print ]
|
ID |
Category |
Severity |
Reproducibility |
Date Submitted |
Last Update |
0009573 |
[DCSS] Bug Report |
minor |
always |
2015-03-24 00:51 |
2015-03-24 14:14 |
|
Reporter |
geekosaur |
View Status |
public |
|
Assigned To |
gammafunk |
Priority |
normal |
Resolution |
done |
|
Status |
closed |
|
Product Branch |
0.16 ancient branch |
|
Summary |
0009573: crawl tiles executable dies on application launch (Finder or open -a) because session id passed |
Description |
I'm not doing this as a git diff because I'm building a release version in that tree and don't want extraneous commits in it. I applied this patch to the 0.16.0 release as well; it should probably be in the tree for people who want to build the tiles app bundle. (The console app bundle does not have the same problem, since it uses a shell script intermediary which ignores its parameters.)
OS X passes a -psn_THING parameter to applications, which causes the tiles executable to exit with an error unless run directly from a terminal. initfile.cc patch attached. |
Additional Information |
|
Tags |
No tags attached. |
|
Attached Files |
initfile.cc.patch [^] (584 bytes) 2015-03-24 00:51 [Show Content] [Hide Content]diff --git a/crawl-ref/source/initfile.cc b/crawl-ref/source/initfile.cc
index a10d607..685d942 100644
--- a/crawl-ref/source/initfile.cc
+++ b/crawl-ref/source/initfile.cc
@@ -4766,6 +4766,13 @@ bool parse_args(int argc, char **argv, bool rc_only)
else
arg = &arg[1];
+ // Mac app bundle executables get a process serial number
+ if (strncmp(arg, "psn_", 4) == 0)
+ {
+ current++;
+ continue;
+ }
+
int o;
for (o = 0; o < num_cmd_ops; o++)
if (strcasecmp(cmd_ops[o], arg) == 0)
|
|