linux: Remove GNOME 2 protocol handler enabler
This commit is contained in:
parent
8a19cf1ed1
commit
73d483af93
|
@ -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
|
// Adds the SparkleShare folder to the user's
|
||||||
|
|
Loading…
Reference in a new issue