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
This commit is contained in:
parent
fd56655995
commit
1b729280b6
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