From 10b13d81be80ecbdb9b92e0740a42e0015e09c03 Mon Sep 17 00:00:00 2001 From: Kenneth Skovhede Date: Fri, 28 Mar 2014 13:20:06 +0100 Subject: [PATCH] Removed the app-indicator extended check --- .../GUI/Duplicati.GUI.TrayIcon/Program.cs | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs index 3c63a8134..102671c76 100644 --- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs +++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs @@ -180,28 +180,7 @@ namespace Duplicati.GUI.TrayIcon private static bool TryGetAppIndicator() { #if __MonoCS__ || __WindowsGTK__ - if (typeof(AppIndicator.ApplicationIndicator) != null) - { - try - { - var n = new AppIndicator.ApplicationIndicator(IntPtr.Zero); - } - catch (DllNotFoundException) - { - return false; - } - catch - { - } - - // If we get here then type is loading, - // and it found the libraries needed - return true; - } - else - { - return false; - } + return typeof(AppIndicator.ApplicationIndicator) != null; #else return false; #endif