From 73d483af93bdd338c42c7c9f7e5ced57df658648 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 28 Mar 2016 11:28:37 +0100 Subject: [PATCH] linux: Remove GNOME 2 protocol handler enabler --- SparkleShare/Linux/SparkleController.cs | 28 ------------------------- 1 file changed, 28 deletions(-) diff --git a/SparkleShare/Linux/SparkleController.cs b/SparkleShare/Linux/SparkleController.cs index 3a68e39a..ebe620eb 100755 --- a/SparkleShare/Linux/SparkleController.cs +++ b/SparkleShare/Linux/SparkleController.cs @@ -70,34 +70,6 @@ namespace SparkleShare { } } } - - - public override void InstallProtocolHandler () - { - // sparkleshare-invite-opener.desktop launches the handler on newer - // systems (like GNOME 3) that implement the last freedesktop.org specs. - // For GNOME 2 however we need to tell gconf about the protocol manually - - try { - // Add the handler to gconf... - Process process = new Process (); - process.StartInfo.FileName = "gconftool-2"; - process.StartInfo.Arguments = - "-s /desktop/gnome/url-handlers/sparkleshare/command 'sparkleshare open %s' --type String"; - - process.Start (); - process.WaitForExit (); - - // ...and enable it - process.StartInfo.Arguments = "-s /desktop/gnome/url-handlers/sparkleshare/enabled --type Boolean true"; - - process.Start (); - process.WaitForExit (); - - } catch { - // Pity... - } - } // Adds the SparkleShare folder to the user's