diff --git a/src/client/spark/App.xaml.cs b/src/client/spark/App.xaml.cs index 0fb890783..8f59034c0 100644 --- a/src/client/spark/App.xaml.cs +++ b/src/client/spark/App.xaml.cs @@ -116,6 +116,7 @@ namespace mbts.ui.shell try { string path = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\BTS\\stunnel\\"; + Log.Ui.info($"Looking for stunnel in {path}"); if (File.Exists(path + "config\\stunnel.conf")) { uint job_error = BTSUINativeMethods.setup_process_job_object(); @@ -124,7 +125,8 @@ namespace mbts.ui.shell kill_stunnel(); start_stunnel(path, job_error); } - path = AppDomain.CurrentDomain.BaseDirectory + "\\..\\stunnel\\"; + path = new DirectoryInfo( AppDomain.CurrentDomain.BaseDirectory ).FullName + "\\stunnel\\"; + Log.Ui.info($"Looking for stunnel in {path}"); if (File.Exists(path + "config\\stunnel.conf")) { uint job_error = BTSUINativeMethods.setup_process_job_object();