Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Made it work without being admin #31

Merged
merged 1 commit into from

2 participants

@dunston

Changed so the settings is being save to the Users AppData instaed of ProgramData on a win8 machine, don't know if it worked on win7, but it should store the settings the right place now

@marklagendijk marklagendijk merged commit a759f0e into marklagendijk:master
@marklagendijk

Thanks for the pull request. Has been released with 1.5.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 WinLess/Settings.cs
View
4 WinLess/Settings.cs
@@ -57,7 +57,7 @@ private void ApplyStartWithWindows()
}
public void SaveSettings(){
- string dataDir = string.Format("{0}\\data", Application.CommonAppDataPath);
+ string dataDir = string.Format("{0}\\data", Application.UserAppDataPath);
string settingsFilePath = string.Format("{0}\\settings.xml", dataDir);
try {
@@ -82,7 +82,7 @@ private void ApplyStartWithWindows()
public static Settings LoadSettings()
{
- string path = string.Format("{0}\\data\\settings.xml", Application.CommonAppDataPath);
+ string path = string.Format("{0}\\data\\settings.xml", Application.UserAppDataPath);
if (System.IO.File.Exists(path))
{
try
Something went wrong with that request. Please try again.