~ubuntu-branches/ubuntu/trusty/gnome-keyring/trusty-updates

« back to all changes in this revision

Viewing changes to pkcs11/gnome2-store/gkm-gnome2-module.c

  • Committer: Package Import Robot
  • Author(s): Robert Ancell
  • Date: 2012-08-24 10:32:10 UTC
  • mfrom: (1.1.80)
  • Revision ID: package-import@ubuntu.com-20120824103210-g4880o16ruf5dq0y
Tags: 3.5.90-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
#include "gkm/gkm-certificate.h"
31
31
#include "gkm/gkm-data-asn1.h"
 
32
#define DEBUG_FLAG GKM_DEBUG_STORAGE
 
33
#include "gkm/gkm-debug.h"
32
34
#include "gkm/gkm-manager.h"
33
35
#include "gkm/gkm-secret.h"
34
36
#include "gkm/gkm-transaction.h"
264
266
gkm_gnome2_module_constructor (GType type, guint n_props, GObjectConstructParam *props)
265
267
{
266
268
        GkmGnome2Module *self = GKM_GNOME2_MODULE (G_OBJECT_CLASS (gkm_gnome2_module_parent_class)->constructor(type, n_props, props));
 
269
 
267
270
        g_return_val_if_fail (self, NULL);
268
271
 
269
272
        if (!self->directory)
270
 
                self->directory = g_build_filename (g_get_home_dir (), ".gnome2", "keyrings", NULL);
 
273
                self->directory = gkm_util_locate_keyrings_directory ();
 
274
        gkm_debug ("gnome2 module directory: %s", self->directory);
 
275
 
271
276
        self->storage = gkm_gnome2_storage_new (GKM_MODULE (self), self->directory);
272
277
 
273
278
        return G_OBJECT (self);