Reverted to Path.Combine and removed the wrong backslash (comment by JohnnyCrazy at github)

This commit is contained in:
Wampe 2015-08-02 23:02:37 +02:00
parent 6ec8926a4f
commit d92c09740c

View File

@ -248,7 +248,7 @@ namespace SpotifyAPI.Local
public static void RunSpotify()
{
if (!IsSpotifyRunning())
Process.Start(string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"\spotify\spotify.exe"));
Process.Start(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"spotify\spotify.exe"));
}
/// <summary>
@ -257,7 +257,7 @@ namespace SpotifyAPI.Local
public static void RunSpotifyWebHelper()
{
if (!IsSpotifyWebHelperRunning())
Process.Start(string.Concat(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"\spotify\data\spotifywebhelper.exe"));
Process.Start(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), @"spotify\data\spotifywebhelper.exe"));
}
}
}