diff --git a/Elwig/App.xaml.cs b/Elwig/App.xaml.cs index ab048a6..61903d1 100644 --- a/Elwig/App.xaml.cs +++ b/Elwig/App.xaml.cs @@ -28,10 +28,10 @@ namespace 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 = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "Elwig"); + public static readonly string InstallPath = 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"); + Path.Combine(InstallPath, "resources/Documents"); public static readonly string TempPath = Path.Combine(Path.GetTempPath(), "Elwig"); public static Config Config { get; private set; } = new(ConfigPath); diff --git a/Elwig/Helpers/Printing/Pdf.cs b/Elwig/Helpers/Printing/Pdf.cs index 6113107..653e0c5 100644 --- a/Elwig/Helpers/Printing/Pdf.cs +++ b/Elwig/Helpers/Printing/Pdf.cs @@ -14,7 +14,7 @@ using System.Drawing.Printing; namespace Elwig.Helpers.Printing { public static class Pdf { - private static readonly string WinziPrint = new string[] { App.ExePath } + private static readonly string WinziPrint = new string[] { App.InstallPath } .Union(Environment.GetEnvironmentVariable("PATH")?.Split(';') ?? []) .Select(x => Path.Combine(x, "WinziPrint.exe")) .Where(File.Exists)