diff --git a/SparkleShare/SparkleController.cs b/SparkleShare/SparkleController.cs index a62d3d79..c117ea89 100644 --- a/SparkleShare/SparkleController.cs +++ b/SparkleShare/SparkleController.cs @@ -20,8 +20,10 @@ using System; using System.Collections.Generic; using System.Diagnostics; using System.IO; +using System.Net; using System.Threading; using System.Text.RegularExpressions; +using System.Xml; namespace SparkleShare { @@ -97,8 +99,10 @@ namespace SparkleShare { // Handle invitations when the user saves an // invitation into the SparkleShare folder - if (args.Name.EndsWith (".invitation")) { + if (args.Name.EndsWith (".sparkle")) { + Console.WriteLine ("YYYYYYYYYYYQQ!!!!!!!"); + if (OnInvitation != null) OnInvitation (args.FullPath); diff --git a/SparkleShare/SparkleUI.cs b/SparkleShare/SparkleUI.cs index 4989b3a9..f7b861d2 100644 --- a/SparkleShare/SparkleUI.cs +++ b/SparkleShare/SparkleUI.cs @@ -68,6 +68,7 @@ namespace SparkleShare { SparkleShare.Controller.OnInvitation += delegate (string invitation_file_path) { Application.Invoke (delegate { + Console.WriteLine ("INVITATION RECEIVED!!!!1"); SparkleInvitation invitation = new SparkleInvitation (invitation_file_path); invitation.Present (); diff --git a/data/gnome-design.sparkleshare-invitation b/data/gnome-design.sparkle similarity index 100% rename from data/gnome-design.sparkleshare-invitation rename to data/gnome-design.sparkle