Bug 150975. Enable GNOME-Keyring when so is loaded
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user