char *path = g_key_file_get_string (key_file, "database", "path", NULL);
if (path) {
if (path[0] == '/')
char *path = g_key_file_get_string (key_file, "database", "path", NULL);
if (path) {
if (path[0] == '/')
- *database_path = talloc_asprintf (ctx, "%s/%s", getenv ("HOME"), path);
+ *database_path = talloc_asprintf (notmuch, "%s/%s", getenv ("HOME"), path);
- *database_path = _xdg_dir (ctx, "XDG_DATA_HOME", ".local/share", profile);
+ *database_path = _xdg_dir (notmuch, "XDG_DATA_HOME", ".local/share", profile);
- if ((status = _choose_database_path (local, profile, key_file,
+ if ((status = _choose_database_path (notmuch, profile, key_file,
status = _finish_open (notmuch, profile, mode, key_file, &message);
DONE:
status = _finish_open (notmuch, profile, mode, key_file, &message);
DONE:
- if ((status = _choose_database_path (local, profile, key_file,
+ if ((status = _choose_database_path (notmuch, profile, key_file,
- if (! (notmuch_path = talloc_asprintf (local, "%s/%s", database_path, ".notmuch"))) {
+ if (! (notmuch_path = talloc_asprintf (notmuch, "%s/%s", database_path, ".notmuch"))) {
- status = _choose_database_path (local, profile, key_file,
+ status = _choose_database_path (notmuch, profile, key_file,
&database_path, &split, &message);
switch (status) {
case NOTMUCH_STATUS_NO_DATABASE:
&database_path, &split, &message);
switch (status) {
case NOTMUCH_STATUS_NO_DATABASE: