mirror of
https://github.com/rosenbjerg/FFMpegCore.git
synced 2024-11-10 08:34:12 +01: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))
|
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
|
||||||
return $@"\\.\pipe\{pipeName}";
|
return $@"\\.\pipe\{pipeName}";
|
||||||
if (RuntimeInformation.IsOSPlatform(OSPlatform.OSX))
|
return $"unix:{Path.Combine(Path.GetTempPath(), $"CoreFxPipe_{pipeName}")}";
|
||||||
return $"unix:{Path.GetTempPath()}/CoreFxPipe_{pipeName}";
|
|
||||||
return $"unix:/tmp/CoreFxPipe_{pipeName}";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue