App: Use environment variables for paths
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Test / Run tests (push) Successful in 1m42s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Test / Run tests (push) Successful in 1m42s
				
			This commit is contained in:
		| @@ -25,10 +25,10 @@ namespace Elwig { | ||||
|  | ||||
|         private readonly DispatcherTimer _autoUpdateTimer = new() { Interval = TimeSpan.FromHours(1) }; | ||||
|  | ||||
|         public static readonly string DataPath = @"C:\ProgramData\Elwig\"; | ||||
|         public static readonly string DataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "Elwig"); | ||||
|         public static readonly string MailsPath = Path.Combine(DataPath, "mails"); | ||||
|         public static readonly string ConfigPath = Path.Combine(DataPath, "config.ini"); | ||||
|         public static readonly string ExePath = @"C:\Program Files\Elwig\"; | ||||
|         public static readonly string ExePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "Elwig"); | ||||
|         public static readonly string DocumentsPath = (Assembly.GetEntryAssembly()?.Location.Contains(@"\bin\") ?? false) ? | ||||
|             Path.Combine(Assembly.GetEntryAssembly()!.Location.Split(@"\bin\")[0], "../Elwig/Documents") : | ||||
|             Path.Combine(ExePath, "resources/Documents"); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user