From 0d07bc468cade2eb7dcee57631a95fa6889fa2f0 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Mon, 13 Apr 2026 19:19:03 +0900 Subject: [PATCH] Add OS/comp arch to debug log --- src/ViewModels/MainViewModel.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ViewModels/MainViewModel.cs b/src/ViewModels/MainViewModel.cs index e7ba750..acbd6b7 100644 --- a/src/ViewModels/MainViewModel.cs +++ b/src/ViewModels/MainViewModel.cs @@ -29,6 +29,7 @@ using System.Reflection.Metadata.Ecma335; using Docnet.Core.Readers; using MigraDoc.DocumentObjectModel.Visitors; using System.Collections.Generic; +using System.Runtime.InteropServices; namespace MayShow.ViewModels; @@ -58,7 +59,9 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown var quotes = Constants.GetQuotes(); Random random = new Random(); var quoteIndex = random.Next(0, quotes.Length); - _programLog = "----- MayShow v" + Constants.AppVersion + " ------" + Environment.NewLine; + var compDetails = RuntimeInformation.OSDescription + " | " + + RuntimeInformation.OSArchitecture.ToString(); + _programLog = "----- MayShow v" + Constants.AppVersion + " | " + compDetails + " ------" + Environment.NewLine; _programLog += quotes[quoteIndex] + Environment.NewLine; _programLog += "---------------------------------------" + Environment.NewLine; _programLog += "Loaded and ready to create report!" + Environment.NewLine;