mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2025-01-18 12:36:44 +00:00
Always use Path.GetTempPath() on linux and macos
Former-commit-id: 1b729280b6
This commit is contained in:
parent
869c8a4c67
commit
50555b144c
1 changed files with 1 additions and 3 deletions
|
@ -12,9 +12,7 @@ public static string GetPipePath(string pipeName)
|
|||
{
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||
return $@"\\.\pipe\{pipeName}";
|
||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
||||
return $"unix:{Path.GetTempPath()}/CoreFxPipe_{pipeName}";
|
||||
return $"unix:/tmp/CoreFxPipe_{pipeName}";
|
||||
return $"unix:{Path.Combine(Path.GetTempPath(), $"CoreFxPipe_{pipeName}")}";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue