Fixed process start for application and webhelper

This commit is contained in:
Wampe 2015-08-02 21:48:31 +02:00
parent 546d745a70
commit 6ec8926a4f

View File

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