Skip to content

Portable Tool for an Ideal Windows Setup

-launching the log

Greedeks154b4a39b018
diff --git a/.Source/GTweak/Utilities/Control/ErrorLogging.cs b/.Source/GTweak/Utilities/Control/ErrorLogging.cs
index 2e188b46..f21472a3 100644
--- a/.Source/GTweak/Utilities/Control/ErrorLogging.cs
+++ b/.Source/GTweak/Utilities/Control/ErrorLogging.cs
@@ -21,6 +21,12 @@ namespace GTweak.Utilities.Control
using var stream = new FileStream(logFilePath, FileMode.Create, FileAccess.Write, FileShare.Read);
using var writer = new StreamWriter(stream, new UTF8Encoding(false));
await writer.WriteLineAsync($"[{DateTime.Now}] Error: {ex.Message}\nStack Trace:\n{ex.StackTrace}\n");
+
+ Process.Start(new ProcessStartInfo
+ {
+ FileName = logFilePath,
+ UseShellExecute = true
+ });
}
catch (Exception fileEx)
{