This repository has been archived on 2024-08-06. You can view files and clone it, but cannot push or open issues or pull requests.
linear-app-launcher/Program.cs
2020-05-18 20:45:25 +01:00

31 lines
806 B
C#

using System;
using System.Windows.Forms;
namespace AppLauncher
{
static class Program
{
const string applicationID = "f31c9f65-4047-41e4-ac85-dbe11d12ee46";
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
System.Threading.Mutex mutex = new System.Threading.Mutex(false, applicationID);
if (mutex.WaitOne(TimeSpan.Zero))
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
mutex.ReleaseMutex();
mutex.Close();
mutex.Dispose();
mutex = null;
}
}
}