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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user