From da4f11d1f6f0d83f5225d3a63e4d4d93c7147d74 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sun, 18 Mar 2018 16:48:00 +0000 Subject: [PATCH] linux ui: Exit if appindicator is not installed but requested --- SparkleShare/Linux/UserInterface.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SparkleShare/Linux/UserInterface.cs b/SparkleShare/Linux/UserInterface.cs index abd77291..0c52c2ca 100644 --- a/SparkleShare/Linux/UserInterface.cs +++ b/SparkleShare/Linux/UserInterface.cs @@ -109,9 +109,14 @@ namespace SparkleShare if (Array.IndexOf (args, "--status-icon=gtk") > -1) StatusIcon.use_appindicator = false; - #if HAVE_APPINDICATOR + #if HAVE_APP_INDICATOR if (Array.IndexOf (args, "--status-icon=appindicator") > -1) StatusIcon.use_appindicator = true; + #else + if (StatusIcon.use_appindicator) { + Console.WriteLine ("AppIndicator not installed."); + Environment.Exit (-1); + } #endif if (StatusIcon.use_appindicator)