From c5fd18e6d30cadfe50d6c543d6b5fdb9619983b1 Mon Sep 17 00:00:00 2001
From: Ray Berezowski <6616212+rberezowski@users.noreply.github.com>
Date: Wed, 26 Aug 2026 22:30:00 -0400
Subject: [PATCH] Fix admin launch and settings visibility
---
MainWindow.xaml | 151 +++++++++++++++++----------------
Services/LauncherController.cs | 34 +++++++-
TaskbarLauncher.csproj | 4 +-
3 files changed, 111 insertions(+), 78 deletions(-)
diff --git a/MainWindow.xaml b/MainWindow.xaml
index 436e446..77652a8 100644
--- a/MainWindow.xaml
+++ b/MainWindow.xaml
@@ -115,8 +115,8 @@
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
-
+ Padding="12">
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
0 })
+ {
+ return target;
+ }
+
+ string[] searchFolders =
+ [
+ Environment.CurrentDirectory,
+ Environment.GetFolderPath(Environment.SpecialFolder.Windows),
+ Environment.GetFolderPath(Environment.SpecialFolder.System),
+ .. (Environment.GetEnvironmentVariable("PATH") ?? "")
+ .Split(Path.PathSeparator, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries)
+ ];
+
+ foreach (string folder in searchFolders.Where(Directory.Exists).Distinct(StringComparer.OrdinalIgnoreCase))
+ {
+ string candidate = Path.Combine(folder, target);
+ if (File.Exists(candidate))
+ {
+ return candidate;
+ }
+ }
+
+ return target;
+ }
}
diff --git a/TaskbarLauncher.csproj b/TaskbarLauncher.csproj
index c6c65e4..6b43dd7 100644
--- a/TaskbarLauncher.csproj
+++ b/TaskbarLauncher.csproj
@@ -12,8 +12,8 @@
Ray Berezowski
Assets\AppIcon.ico
1.0.1
- 1.0.1.18
- 1.0.1.18
+ 1.0.1.19
+ 1.0.1.19
1.0.1