Commit 2c0a356
macos: embed Info.plist in subprocess binary via -sectcreate
Replace the broken SubprocessMacInit() runtime injection approach with
a reliable compile-time solution: embed Info.plist in the subprocess
Mach-O binary using the -sectcreate __TEXT __info_plist linker flag.
CoreFoundation reads the __TEXT,__info_plist section automatically, so
CFBundleGetMainBundle() returns CFBundleIdentifier = "org.cefpython"
without any runtime code. This matches the service name the browser
process registers with MachPortRendezvousServer, fixing bootstrap_look_up.
The previous approach (CFDictionarySetValue on the info dict) was broken
because CFBundleGetInfoDictionary() returns an immutable CFDictionaryRef
for flat binaries; the set operation silently did nothing.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3dc5afe commit 2c0a356
4 files changed
Lines changed: 17 additions & 48 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
154 | 159 | | |
155 | 160 | | |
156 | 161 | | |
157 | | - | |
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | 31 | | |
44 | 32 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 33 | | |
49 | 34 | | |
50 | 35 | | |
| |||
This file was deleted.
0 commit comments