Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/duplicati/duplicati.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Skovhede <kenneth@hexad.dk>2017-05-23 11:24:56 +0300
committerKenneth Skovhede <kenneth@hexad.dk>2017-05-23 11:24:56 +0300
commit908cea62be689bd0c140ba7053f02976630fe703 (patch)
treee7906663bc957155c9a0466b74984c96af737ae6
parente1c7a065916f7a32bedf731edb328074f2b81fba (diff)
Added help-text if the TrayIcon is build without GTK support and attempted started on Linux.
-rw-r--r--Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs10
1 files changed, 8 insertions, 2 deletions
diff --git a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs
index 0ed82d568..53b33d047 100644
--- a/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs
+++ b/Duplicati/GUI/Duplicati.GUI.TrayIcon/Program.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
@@ -98,7 +98,13 @@ namespace Duplicati.GUI.TrayIcon
string toolkit;
if (!options.TryGetValue(TOOLKIT_OPTION, out toolkit))
- toolkit = GetDefaultToolKit(true);
+ {
+#if !(__MonoCS__ || __WindowsGTK__ || ENABLE_GTK)
+ if (Library.Utility.Utility.IsClientLinux && !Library.Utility.Utility.IsClientOSX)
+ Console.WriteLine("Warning: this build does not support GTK, rebuild with ENABLE_GTK defined");
+#endif
+ toolkit = GetDefaultToolKit(true);
+ }
else
{
if (TOOLKIT_WINDOWS_FORMS.Equals(toolkit, StringComparison.InvariantCultureIgnoreCase))