diff options
Diffstat (limited to 'src/mcd-account.c')
-rw-r--r-- | src/mcd-account.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/mcd-account.c b/src/mcd-account.c index 644ad158..0252747c 100644 --- a/src/mcd-account.c +++ b/src/mcd-account.c @@ -663,19 +663,8 @@ load_manager (McdAccount *account) static gchar * get_account_data_path (McdAccountPrivate *priv) { - const gchar *base; - - base = g_getenv ("MC_ACCOUNT_DIR"); - if (!base) - base = ACCOUNTS_DIR; - if (!base) - return NULL; - - if (base[0] == '~') - return g_build_filename (g_get_home_dir(), base + 1, - priv->unique_name, NULL); - else - return g_build_filename (base, priv->unique_name, NULL); + return g_build_filename (g_get_user_config_dir (), + "mission-control", "accounts", priv->unique_name, NULL); } static void |