From 50555b144c5f00f87124ebb64ebc2ea7e668148d Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Tue, 31 Jan 2023 23:10:09 +0100 Subject: [PATCH] Always use Path.GetTempPath() on linux and macos Former-commit-id: 1b729280b65508ed839871e9346eecdbddda89fb --- FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs b/FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs index cb237ed..8705335 100644 --- a/FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs +++ b/FFMpegCore/FFMpeg/Pipes/PipeHelpers.cs @@ -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}")}"; } } }