mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
Better fix for SettingsPath location
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user