Bug 150975. Enable GNOME-Keyring when so is loaded

This commit is contained in:
Jim Norman
2006-02-15 00:17:28 +00:00
parent 4a565834d0
commit 2155b89bf7
5 changed files with 24 additions and 9 deletions

View File

@@ -56,7 +56,7 @@ namespace Novell.CASA.DataEngines
~GKEngine()
{
//GnomeKeyring.ReleaseGnomeKeyringLib();
GnomeKeyring.ReleaseGnomeKeyringLib();
}
public XmlNode Aggregate()
@@ -295,10 +295,20 @@ namespace Novell.CASA.DataEngines
public static Boolean IsStoreAvailable()
{
Console.WriteLine("Checking GKEngine");
try
{
System.Runtime.InteropServices.Marshal.PrelinkAll(typeof(GnomeKeyring));
return true;
System.Runtime.InteropServices.Marshal.PrelinkAll(typeof(GnomeKeyring));
if (GnomeKeyring.IsGnomeKeyringInstalled())
{
//Console.WriteLine("IsGnomeKeyringInstalled is true");
return true;
}
else
{
//Console.WriteLine("IsGnomeKeyringInstalled is false");
return false;
}
}
catch(DllNotFoundException d)
{