Better fix for SettingsPath location

This commit is contained in:
Sean Kaim
2016-05-19 14:18:49 -04:00
parent 6b1c5b5b92
commit ccde45acc9

View File

@@ -7,8 +7,8 @@ namespace mRemoteNG.App.Info
{
public class SettingsFileInfo
{
public static readonly string exe = Assembly.GetExecutingAssembly().GetName().CodeBase;
public static readonly string exePath = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().GetName().CodeBase).LocalPath);
//public static readonly string exe = Assembly.GetExecutingAssembly().GetName().CodeBase;
public static readonly string exePath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
#if !PORTABLE
public static readonly string SettingsPath = System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData) + "\\" + Application.ProductName;
#else