don't automatically make link file (#1)
Build / build (macos-latest) (push) Has been cancelled
Build / build (ubuntu-latest) (push) Has been cancelled
Build / build (windows-latest) (push) Has been cancelled

Co-authored-by: Connor Ivy <connor@speckle.systems>
This commit is contained in:
connorivy
2024-05-21 11:03:47 -05:00
committed by GitHub
parent 9c6607f1c5
commit c4b0cde1d6
@@ -1,4 +1,4 @@
using System;
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
@@ -34,19 +34,6 @@ namespace DesktopNotifications.Windows
SetCurrentProcessExplicitAppUserModelID(aumid);
using var shortcut = new ShellLink
{
TargetPath = mainModule.FileName,
Arguments = string.Empty,
AppUserModelID = aumid
};
var appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
var startMenuPath = Path.Combine(appData, @"Microsoft\Windows\Start Menu\Programs");
var shortcutFile = Path.Combine(startMenuPath, $"{appName}.lnk");
shortcut.Save(shortcutFile);
return new WindowsApplicationContext(appName, aumid);
}
}