I am trying to move an existing app to flatpak.
The app depends on curl which I have added as a module in the manifest.
When I run the part that depends on curl, I get a broken pipe error.
“Gio.IOErrorEnum: Error writing to file descriptor: Broken pipe”
The GJS code uses Gio.subrocess communicate_utf8_finish() where the error occurs.
Is there something preventing my app from reading stdout?
I’m using codium…
Not sure how to get a runtime terminal.
The terminal that shows what’s going on during execution is read only.
Also, I get the same error whether or not I include curl as a module, so problem may be spawning a subprocess in general more than exactly what that subprocess is supposed to be.
“Broken pipe” is a pretty generic error, that probably just means the process exited with an error. Which is I guess a DNS error.
It should hopefully not be necessary, but you can try adding --talk-name=org.freedesktop.Flatpak, which should allow curl to run on the host. If that doesn’t work, then it’s probably not Flatpak causing troubles.
curl works at build time.
curl cannot connect to server (1.1.1.1) from the sdk runtime terminal
curl cannot resolve hosts from the sdk runtime terminal