Very weird subprocess issue #1960
Unanswered
blackxored
asked this question in
potential-bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Body
This is gonna be really hard to reproduce, so I'm just wondering if you can point me in the right direction. I'm assuming is some weird timing issue (since aerospace launches at login, presumably before the connection is established, see below).
So, I setup this VLAN and I have a command that launches Moonlight (game streaming client) to a specific host and app, after hours of troubleshooting I ended up figuring out that when launched through Aerospace it doesn't connect. It does on the terminal. It does on the app.
So I peeled off all the layers: AppleScript that checks if the app is running first, inline command, and the whole Moonlight invocation was replaced with a curl http://myhost:47989.
When aerospace runs this it fails, when ran any other way it succeeds, I'm assuming this is because Aerospace launched before the VLAN interface was established but I have no clue.
I looked at the code for ExecAndForgetCommand and didn't see anything weird but I don't speak Swift so I don't know if Process is stdlib.
^ binding this to anything fails.
Additional info
Doubt that the env has much to do with this but here it is:
I know this is really hard, but if you hear anything related to child processes weirdness, please let me know, for now I just can't use the shortcut.
Beta Was this translation helpful? Give feedback.
All reactions