Skip to content

Commit d92c097

Browse files
committed
Reverted to Path.Combine and removed the wrong backslash (comment by JohnnyCrazy at github)
1 parent 6ec8926 commit d92c097

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

SpotifyAPI/Local/SpotifyLocalAPI.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ public static Boolean IsSpotifyWebHelperRunning()
248248
public static void RunSpotify()
249249
{
250250
if (!IsSpotifyRunning())
251-
Process.Start(string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"\spotify\spotify.exe"));
251+
Process.Start(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"spotify\spotify.exe"));
252252
}
253253

254254
/// <summary>
@@ -257,7 +257,7 @@ public static void RunSpotify()
257257
public static void RunSpotifyWebHelper()
258258
{
259259
if (!IsSpotifyWebHelperRunning())
260-
Process.Start(string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"\spotify\data\spotifywebhelper.exe"));
260+
Process.Start(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"spotify\data\spotifywebhelper.exe"));
261261
}
262262
}
263263
}

0 commit comments

Comments
 (0)