From d92c09740c5d293ac4222a26b2f1dc953d42d7c5 Mon Sep 17 00:00:00 2001 From: Wampe Date: Sun, 2 Aug 2015 23:02:37 +0200 Subject: [PATCH] Reverted to Path.Combine and removed the wrong backslash (comment by JohnnyCrazy at github) --- SpotifyAPI/Local/SpotifyLocalAPI.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpotifyAPI/Local/SpotifyLocalAPI.cs b/SpotifyAPI/Local/SpotifyLocalAPI.cs index a39e1c9e..8d46c86a 100644 --- a/SpotifyAPI/Local/SpotifyLocalAPI.cs +++ b/SpotifyAPI/Local/SpotifyLocalAPI.cs @@ -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")); } /// @@ -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")); } } }