From f4efb6502557475495d00cc1ec4a5c909fccc1a0 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Thu, 31 Mar 2016 21:11:37 +0100 Subject: [PATCH] linux: Fix build --- SparkleShare/Linux/SparkleShare.Autostart.desktop | 2 +- SparkleShare/Linux/UserInterface.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SparkleShare/Linux/SparkleShare.Autostart.desktop b/SparkleShare/Linux/SparkleShare.Autostart.desktop index 9552c834..428755d6 100755 --- a/SparkleShare/Linux/SparkleShare.Autostart.desktop +++ b/SparkleShare/Linux/SparkleShare.Autostart.desktop @@ -1,7 +1,7 @@ [Desktop Entry] Name=SparkleShare Type=Application -Exec=sh -c \"if type "sparkleshare" > /dev/null; then sparkleshare else xdg-app run org.sparkleshare.SparkleShare fi" +Exec=sh -c "type -P sparkleshare &>/dev/null && sparkleshare || xdg-app run org.sparkleshare.SparkleShare" Icon=org.sparkleshare.SparkleShare Terminal=false X-GNOME-Autostart-enabled=true diff --git a/SparkleShare/Linux/UserInterface.cs b/SparkleShare/Linux/UserInterface.cs index edbc7000..b15b2857 100644 --- a/SparkleShare/Linux/UserInterface.cs +++ b/SparkleShare/Linux/UserInterface.cs @@ -48,7 +48,7 @@ namespace SparkleShare { application.Register (null); application.Activated += ApplicationActivatedDelegate; - Gdk.Color color = UserInterfaceHelpers.RGBAToColor (new Label("").StyleContext.GetColor (StateFlags.Insensitive)); + Gdk.Color color = UserInterfaceHelpers.RGBAToColor (new Label().StyleContext.GetColor (StateFlags.Insensitive)); SecondaryTextColor = UserInterfaceHelpers.ColorToHex (color); color = UserInterfaceHelpers.MixColors (