mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
Decouple runtime info and dependencies info
This commit is contained in:
@@ -43,8 +43,8 @@ namespace Wox
|
|||||||
{
|
{
|
||||||
Stopwatch.Normal("|App.OnStartup|Startup cost", () =>
|
Stopwatch.Normal("|App.OnStartup|Startup cost", () =>
|
||||||
{
|
{
|
||||||
Log.Info("|App.Main|Begin Wox startup ----------------------------------------------------");
|
Log.Info("|App.OnStartup|Begin Wox startup ----------------------------------------------------");
|
||||||
Log.Info($"|App.OnStartup|{ErrorReporting.RuntimeInfo()}");
|
Log.Info($"|App.OnStartup|Runtime info:{ErrorReporting.RuntimeInfo()}");
|
||||||
RegisterAppDomainExceptions();
|
RegisterAppDomainExceptions();
|
||||||
RegisterDispatcherUnhandledException();
|
RegisterDispatcherUnhandledException();
|
||||||
|
|
||||||
@@ -59,6 +59,7 @@ namespace Wox
|
|||||||
var window = new MainWindow(_settings, _mainVM);
|
var window = new MainWindow(_settings, _mainVM);
|
||||||
API = new PublicAPIInstance(_settingsVM, _mainVM);
|
API = new PublicAPIInstance(_settingsVM, _mainVM);
|
||||||
PluginManager.InitializePlugins(API);
|
PluginManager.InitializePlugins(API);
|
||||||
|
Log.Info($"|App.OnStartup|Dependencies Info:{ErrorReporting.DependenciesInfo()}");
|
||||||
|
|
||||||
Current.MainWindow = window;
|
Current.MainWindow = window;
|
||||||
Current.MainWindow.Title = Constant.Wox;
|
Current.MainWindow.Title = Constant.Wox;
|
||||||
|
|||||||
@@ -33,8 +33,13 @@ namespace Wox.Helper
|
|||||||
var info = $"\nWox version: {Constant.Version}" +
|
var info = $"\nWox version: {Constant.Version}" +
|
||||||
$"\nOS Version: {Environment.OSVersion.VersionString}" +
|
$"\nOS Version: {Environment.OSVersion.VersionString}" +
|
||||||
$"\nIntPtr Length: {IntPtr.Size}" +
|
$"\nIntPtr Length: {IntPtr.Size}" +
|
||||||
$"\nx64: {Environment.Is64BitOperatingSystem}" +
|
$"\nx64: {Environment.Is64BitOperatingSystem}";
|
||||||
$"\nPython Path: {Constant.PythonPath}" +
|
return info;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static string DependenciesInfo()
|
||||||
|
{
|
||||||
|
var info = $"\nPython Path: {Constant.PythonPath}" +
|
||||||
$"\nEverything SDK Path: {Constant.EverythingSDKPath}";
|
$"\nEverything SDK Path: {Constant.EverythingSDKPath}";
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ namespace Wox
|
|||||||
|
|
||||||
StringBuilder content = new StringBuilder();
|
StringBuilder content = new StringBuilder();
|
||||||
content.AppendLine(ErrorReporting.RuntimeInfo());
|
content.AppendLine(ErrorReporting.RuntimeInfo());
|
||||||
|
content.AppendLine(ErrorReporting.DependenciesInfo());
|
||||||
content.AppendLine($"Date: {DateTime.Now.ToString(CultureInfo.InvariantCulture)}");
|
content.AppendLine($"Date: {DateTime.Now.ToString(CultureInfo.InvariantCulture)}");
|
||||||
content.AppendLine("Exception:");
|
content.AppendLine("Exception:");
|
||||||
content.AppendLine(exception.Source);
|
content.AppendLine(exception.Source);
|
||||||
|
|||||||
Reference in New Issue
Block a user