linux: Add ifdef for Run method to work on different gtk-sharp versions

This commit is contained in:
Hylke Bons 2017-04-17 09:50:32 +01:00
parent c3da354abd
commit dbe9ceea19

View file

@ -61,8 +61,15 @@ namespace SparkleShare {
public void Run (string [] args)
{
(application as GLib.Application).Run (0, null);
{
// FIXME: Hack to cover API differences between Ubuntu and latest GNOME
if (InstallationInfo.OperatingSystem == OS.Ubuntu) {
#if HAVE_APP_INDICATOR
(application as GLib.Application).Run (0, null);
#endif
} else {
(application as GLib.Application).Run ("org.sparkleshare.SparkleShare", new string [0]);
}
}