mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
commit
93a91a0f38
1 changed files with 4 additions and 3 deletions
|
@ -177,10 +177,11 @@ public void ShowFailedHotkeys()
|
|||
string hotkeyText = failedHotkeysList.Count > 1 ? Resources.HotkeyManager_ShowFailedHotkeys_hotkeys : Resources.HotkeyManager_ShowFailedHotkeys_hotkey;
|
||||
string text = string.Format(Resources.HotkeyManager_ShowFailedHotkeys_Unable_to_register_hotkey, hotkeyText, failedHotkeys);
|
||||
|
||||
string[] processNames = new string[] { "ShareX", "OneDrive", "Dropbox", "Greenshot", "ScreenshotCaptor", "FSCapture" };
|
||||
string[] processNames = new string[] { "ShareX", "OneDrive", "Dropbox", "Greenshot", "ScreenshotCaptor", "FSCapture", "Snagit32", "puush", "Lightshot" };
|
||||
int ignoreProcess = Process.GetCurrentProcess().Id;
|
||||
List<string> conflictProcessNames = Process.GetProcesses().Where(x => x.Id != ignoreProcess).Select(x => x.ProcessName).
|
||||
Where(x => !string.IsNullOrEmpty(x) && processNames.Any(x2 => x.Equals(x2, StringComparison.InvariantCultureIgnoreCase))).ToList();
|
||||
List<string> conflictProcessNames = Process.GetProcesses().Where(x => x.Id != ignoreProcess && !string.IsNullOrEmpty(x.ProcessName) &&
|
||||
processNames.Any(x2 => x.ProcessName.Equals(x2, StringComparison.InvariantCultureIgnoreCase))).
|
||||
Select(x => string.Format("{0} ({1})", x.MainModule.FileVersionInfo.ProductName, x.MainModule.ModuleName)).ToList();
|
||||
|
||||
if (conflictProcessNames != null && conflictProcessNames.Count > 0)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue