From 7a99c574e93a95170372ea5584b6c9f5f8f2e712 Mon Sep 17 00:00:00 2001 From: hummbugg <70935773+hummbugg@users.noreply.github.com> Date: Mon, 4 May 2026 16:13:05 -0400 Subject: [PATCH 1/2] Enable UseShellExecute for ProcessStartInfo Set UseShellExecute to true for launching shortcuts. This is required for launching .lnk and shell-based apps (e.g., Office, UWP); fixes shortcuts not opening. --- main/Forms/frmMain.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/main/Forms/frmMain.cs b/main/Forms/frmMain.cs index 19d67ba..010c350 100644 --- a/main/Forms/frmMain.cs +++ b/main/Forms/frmMain.cs @@ -342,6 +342,7 @@ public void OpenFile(string arguments, string path, string workingDirec) proc.Arguments = arguments; proc.FileName = path; proc.WorkingDirectory = workingDirec; + proc.UseShellExecute = true; // Required for launching .lnk and shell-based apps (e.g., Office, UWP); fixes shortcuts not opening /* proc.EnableRaisingEvents = false; From a3f1878e2c5eb99d5e149195e073f13303ce5f55 Mon Sep 17 00:00:00 2001 From: hummbugg <70935773+hummbugg@users.noreply.github.com> Date: Mon, 4 May 2026 16:54:59 -0400 Subject: [PATCH 2/2] Add tooltip for shortcut icon hover display Added a tooltip feature to display the shortcut/app name when hovering over the icon, enhancing user experience by distinguishing identical icons. --- main/User controls/ucShortcut.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/main/User controls/ucShortcut.cs b/main/User controls/ucShortcut.cs index d3273b4..bbd00ba 100644 --- a/main/User controls/ucShortcut.cs +++ b/main/User controls/ucShortcut.cs @@ -19,6 +19,10 @@ public partial class ucShortcut : UserControl public ProgramShortcut Psc { get; set; } public frmMain MotherForm { get; set; } public Category ThisCategory { get; set; } + + // ADDED: Tooltip used to show the shortcut/app name when hovering over the icon. + private ToolTip shortcutToolTip = new ToolTip(); + public ucShortcut() { InitializeComponent(); @@ -30,6 +34,16 @@ private void ucShortcut_Load(object sender, EventArgs e) this.BringToFront(); this.BackColor = MotherForm.BackColor; picIcon.BackgroundImage = ThisCategory.loadImageCache(Psc); // Use the local icon cache for the file specified as the icon image + + // ADDED: Show a hover tooltip so identical icons can be distinguished. + string displayName = !string.IsNullOrWhiteSpace(Psc.name) + ? Psc.name + : Path.GetFileNameWithoutExtension(Psc.FilePath); + + // ADDED: Attach tooltip to both the UserControl and the actual PictureBox. + // The mouse is usually over picIcon, so setting only "this" may not be enough. + shortcutToolTip.SetToolTip(this, displayName); + shortcutToolTip.SetToolTip(picIcon, displayName); } public void ucShortcut_Click(object sender, EventArgs e)