Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/XIVLauncher/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
using XIVLauncher.Settings;
using XIVLauncher.Settings.Parsers;
using XIVLauncher.Support;
using XIVLauncher.Utilities;
using XIVLauncher.Windows;
using XIVLauncher.Xaml;

Expand Down Expand Up @@ -298,6 +299,9 @@ private void App_OnStartup(object sender, StartupEventArgs e)
// ignored
}

// needs to be set early, and needs to be the same as what Squirrel sets for sanity's sake.
NativeFunctions.SetCurrentProcessExplicitAppUserModelID("com.squirrel.XIVLauncher.XIVLauncher");

try
{
LogInit.Setup(
Expand Down
9 changes: 9 additions & 0 deletions src/XIVLauncher/Utilities/NativeFunctions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System.Runtime.InteropServices;

namespace XIVLauncher.Utilities;

internal class NativeFunctions
{
[DllImport("shell32.dll", SetLastError = true)]
internal static extern void SetCurrentProcessExplicitAppUserModelID([MarshalAs(UnmanagedType.LPWStr)] string appId);
}