- pid = Port.open({:spawn_executable, executable}, [:use_stdio, :stream, :exit_status, :binary, args: args])
- fifo = Port.open(to_charlist(fifo_path), [:eof, :binary, :stream, :out])
- true = Port.command(fifo, env.body)
- :erlang.port_close(fifo)
+ pid =
+ Port.open({:spawn_executable, executable}, [
+ :use_stdio,
+ :stream,
+ :exit_status,
+ :binary,
+ args: args
+ ])
+
+ fifo = File.open!(fifo_path, [:append, :binary])
+ fix = Pleroma.Helpers.QtFastStart.fix(env.body)
+ IO.binwrite(fifo, fix)
+ File.close(fifo)