[gnome-keyring] daemon: During testing write aliases to right directory
- From: Stefan Walter <stefw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-keyring] daemon: During testing write aliases to right directory
- Date: Thu, 6 Mar 2014 17:48:07 +0000 (UTC)
commit 8272724a3970cd3e8f5d32dd5e640c0119596fb0
Author: Stef Walter <stefw gnome org>
Date: Thu Mar 6 16:11:28 2014 +0100
daemon: During testing write aliases to right directory
daemon/dbus/gkd-secret-service.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-service.c b/daemon/dbus/gkd-secret-service.c
index 69d30b9..375554e 100644
--- a/daemon/dbus/gkd-secret-service.c
+++ b/daemon/dbus/gkd-secret-service.c
@@ -87,6 +87,16 @@ default_path (GkdSecretService *self)
gchar *old_directory;
gchar *new_directory;
+#if WITH_DEBUG
+ if (self->alias_directory == NULL) {
+ const gchar *path = g_getenv ("GNOME_KEYRING_TEST_PATH");
+ if (path && path[0]) {
+ self->alias_directory = g_strdup (path);
+ g_debug ("Alias directory was overridden by tests: %s", path);
+ }
+ }
+#endif
+
if (self->alias_directory == NULL) {
new_directory = g_build_filename (g_get_user_data_dir (), "keyrings", NULL);
old_directory = g_build_filename (g_get_home_dir (), ".gnome2", "keyrings", NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]