mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 03:37:59 +01:00
[PTRun][Terminal] additional logging (#17570)
This commit is contained in:
committed by
GitHub
parent
98268cc10a
commit
5dd9049810
@@ -8,6 +8,7 @@ using System.IO;
|
||||
using System.Linq;
|
||||
using System.Security.Principal;
|
||||
using Windows.Management.Deployment;
|
||||
using Wox.Plugin.Logger;
|
||||
|
||||
namespace Microsoft.PowerToys.Run.Plugin.WindowsTerminal.Helpers
|
||||
{
|
||||
@@ -35,10 +36,16 @@ namespace Microsoft.PowerToys.Run.Plugin.WindowsTerminal.Helpers
|
||||
{
|
||||
var profiles = new List<TerminalProfile>();
|
||||
|
||||
if (!Terminals.Any())
|
||||
{
|
||||
Log.Warn($"No Windows Terminal packages installed", typeof(TerminalQuery));
|
||||
}
|
||||
|
||||
foreach (var terminal in Terminals)
|
||||
{
|
||||
if (!File.Exists(terminal.SettingsPath))
|
||||
{
|
||||
Log.Warn($"Failed to find settings file {terminal.SettingsPath}", typeof(TerminalQuery));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user