mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Plugins - Added descriptions
Settings - Plugin settings tab UI - Catch exceptions during exception dialog display Plugins - Implemented enable/disable of plugins (WIP) Novation - Added Launchpad Mini layout and image
This commit is contained in:
1 parent
73245a3d4b
commit
16af36bc57
44 files changed
+810
-199
No files matched your search
@@ -0,0 +1,27 @@
|
||||
using System.Diagnostics;
|
||||
using System.Windows;
|
||||
using Stylet;
|
||||
|
||||
namespace Artemis.Core.Utilities
|
||||
{
|
||||
public static class CurrentProcessUtilities
|
||||
{
|
||||
public static string GetCurrentLocation()
|
||||
{
|
||||
return Process.GetCurrentProcess().MainModule.FileName;
|
||||
}
|
||||
|
||||
public static void RestartSelf()
|
||||
{
|
||||
var info = new ProcessStartInfo
|
||||
{
|
||||
Arguments = "/C choice /C Y /N /D Y /T 5 & START /wait taskkill /f /im \"Artemis.UI.exe\" & START \"\" \"" + GetCurrentLocation() + "\"",
|
||||
WindowStyle = ProcessWindowStyle.Hidden,
|
||||
CreateNoWindow = true,
|
||||
FileName = "cmd.exe"
|
||||
};
|
||||
Process.Start(info);
|
||||
Execute.OnUIThread(() => Application.Current.Shutdown());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user