Bug 172730. Check the GNOME_KEYRING_SOCKET variable before displaying

the Gnome Keyring tab and settings.
This commit is contained in:
Jim Norman 2007-01-23 10:09:14 +00:00
parent 0adc2a2d28
commit 5b267c79e5
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jan 23 14:50:58 MST 2007 - jnorman@novell.com
- Bug 172730. Check the GNOME_KEYRING_SOCKET environment variable
before displaying the gnome tab and setting.
-------------------------------------------------------------------
Tue Jan 23 14:25:13 MST 2007 - jnorman@novell.com

View File

@ -297,6 +297,13 @@ namespace Novell.CASA.DataEngines
public static Boolean IsStoreAvailable()
{
string sIsSocketDefined = Environment.GetEnvironmentVariable("GNOME_KEYRING_SOCKET");
if ((sIsSocketDefined == null) || (sIsSocketDefined.Length < 1))
{
return false;
}
try
{
System.Runtime.InteropServices.Marshal.PrelinkAll(typeof(GnomeKeyring));