From e55e195d88ba4a3bfea47cb8784564a43f426e48 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 2 Feb 2017 11:25:17 -0500 Subject: [PATCH] make app launcher prober ignore blocked DLLs --- ShiftOS_TheReturn/AppLauncherDaemon.cs | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ShiftOS_TheReturn/AppLauncherDaemon.cs b/ShiftOS_TheReturn/AppLauncherDaemon.cs index 6df2f41..9a0754b 100644 --- a/ShiftOS_TheReturn/AppLauncherDaemon.cs +++ b/ShiftOS_TheReturn/AppLauncherDaemon.cs @@ -53,10 +53,12 @@ namespace ShiftOS.Engine { if (asmExec.EndsWith(".dll") | asmExec.EndsWith(".exe")) { - var asm = Assembly.LoadFrom(asmExec); - - if (asm.GetReferencedAssemblies().Contains("ShiftOS.Engine") || asm.FullName.Contains("ShiftOS.Engine")) + try { + var asm = Assembly.LoadFrom(asmExec); + + if (asm.GetReferencedAssemblies().Contains("ShiftOS.Engine") || asm.FullName.Contains("ShiftOS.Engine")) + { foreach (var type in asm.GetTypes()) { if (type.GetInterfaces().Contains(typeof(IShiftOSWindow))) @@ -74,6 +76,11 @@ namespace ShiftOS.Engine } } } + } + } + catch + { + } } }