Skip to content

Commit

Permalink
fix - Fixed temporary file path
Browse files Browse the repository at this point in the history
---

We've fixed temporary file path in Linux systems.

---

Type: fix
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Sep 20, 2024
1 parent 936f0a1 commit bcbcdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BassBoom.Cli/CliBase/PlayerControls.cs
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ internal static void PlayTest()
InfoBoxColor.WriteInfoBox("Playing test sound...", false);

// Extract the test sound asset to a temporary file
string path = PlatformHelper.IsOnWindows() ? $"{Environment.GetEnvironmentVariable("TEMP")}" : $"{Environment.GetEnvironmentVariable("TEMP")}";
string path = PlatformHelper.IsOnWindows() ? $"{Environment.GetEnvironmentVariable("TEMP")}" : $"/tmp/";
string fullPath = $"{path}/{DateTime.Now:ddMMyyyyHHmmssfff}.mp3";
var stream = typeof(PlayerControls).Assembly.GetManifestResourceStream("BassBoom.Cli.sample.mp3") ??
throw new Exception("Missing test sound data.");
Expand Down

0 comments on commit bcbcdc3

Please sign in to comment.