Skip to content

Commit

Permalink
Use /tmp folder for unix sockets
Browse files Browse the repository at this point in the history
  • Loading branch information
rosenbjerg committed Oct 25, 2020
1 parent 564a9e6 commit 26f5b0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static string GetPipePath(string pipeName)
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
return $@"\\.\pipe\{pipeName}";
else
return $"unix:/run/CoreFxPipe_{pipeName}";
return $"unix:/tmp/CoreFxPipe_{pipeName}";
}
}
}

2 comments on commit 26f5b0f

@samburovkv
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does temporary path hard coded again? #100

@rosenbjerg
Copy link
Owner Author

@rosenbjerg rosenbjerg commented on 26f5b0f Nov 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another user of the library reported that on mac, Path.GetTempPath() resolved to a very long path that was longer than permitted so it threw an exception because of that (#116)

Please sign in to comment.