SparkleShare.SparkleController.AddToBookmarks C# (CSharp) Method

AddToBookmarks() public method

public AddToBookmarks ( ) : void
return void
        public override void AddToBookmarks()
        {
            string user_profile_path = Environment.GetFolderPath (Environment.SpecialFolder.UserProfile);
            string shortcut_path     = Path.Combine (user_profile_path, "Links", "SparkleShare.lnk");

            if (File.Exists (shortcut_path))
                File.Delete (shortcut_path);

            Shortcut shortcut = new Shortcut ();
            shortcut.Create (FoldersPath, shortcut_path);
        }