Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/N_m3u8DL-RE/Util/PipeUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ public static Stream CreatePipe(string pipeName)
{
return new NamedPipeServerStream(pipeName, PipeDirection.InOut);
}

var path = Path.Combine(Path.GetTempPath(), pipeName);

var prepath = OtherUtil.GetEnvironmentVariable("RE_LIVE_PIPE_TMP_DIR", Path.GetTempPath());
var path = Path.Combine(prepath, pipeName);
using var p = new Process();
p.StartInfo = new ProcessStartInfo()
{
Expand Down Expand Up @@ -102,4 +103,4 @@ public static bool StartPipeMux(string binary, string[] pipeNames, string output

return p.ExitCode == 0;
}
}
}