From 5b267c79e56d35de68660bfd152951728c2c3cd9 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Tue, 23 Jan 2007 10:09:14 +0000 Subject: [PATCH] Bug 172730. Check the GNOME_KEYRING_SOCKET variable before displaying the Gnome Keyring tab and settings. --- CASA/CASA.changes | 6 ++++++ CASA/adlib/GKEngine.cs | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/CASA/CASA.changes b/CASA/CASA.changes index fa778b3f..868f74d1 100644 --- a/CASA/CASA.changes +++ b/CASA/CASA.changes @@ -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 diff --git a/CASA/adlib/GKEngine.cs b/CASA/adlib/GKEngine.cs index e42b6729..c04505e8 100644 --- a/CASA/adlib/GKEngine.cs +++ b/CASA/adlib/GKEngine.cs @@ -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));