Bug 133386: Make calls to gnome-keyring.so dynamic. This solves an install dependency when gnome-keyring is not installed on the target system.

This commit is contained in:
Jim Norman
2006-02-13 23:58:21 +00:00
parent 00317b4bc9
commit f7cc163293
8 changed files with 594 additions and 24 deletions

View File

@@ -52,6 +52,11 @@ namespace Novell.CASA.DataEngines
public GKEngine()
{
}
~GKEngine()
{
GnomeKeyring.ReleaseGnomeKeyringLib();
}
public XmlNode Aggregate()
@@ -292,8 +297,11 @@ namespace Novell.CASA.DataEngines
{
try
{
System.Runtime.InteropServices.Marshal.PrelinkAll(typeof(GnomeKeyring));
return true;
System.Runtime.InteropServices.Marshal.PrelinkAll(typeof(GnomeKeyring));
if (GnomeKeyring.IsGnomeKeyringInstalled())
return true;
else
return false;
}
catch(DllNotFoundException d)
{