aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-16 19:41:26 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-07-16 19:41:49 +0800
commit758bc33318e81709f4a64ea99c0629e9c522258a (patch)
treeef6499e00500a0879f8710a633d1692f12995ad0 /libempathy
parent1c95c220ca3830e83ed436d840528126e9ba9d15 (diff)
downloadgsoc2013-empathy-758bc33318e81709f4a64ea99c0629e9c522258a.tar
gsoc2013-empathy-758bc33318e81709f4a64ea99c0629e9c522258a.tar.gz
gsoc2013-empathy-758bc33318e81709f4a64ea99c0629e9c522258a.tar.bz2
gsoc2013-empathy-758bc33318e81709f4a64ea99c0629e9c522258a.tar.lz
gsoc2013-empathy-758bc33318e81709f4a64ea99c0629e9c522258a.tar.xz
gsoc2013-empathy-758bc33318e81709f4a64ea99c0629e9c522258a.tar.zst
gsoc2013-empathy-758bc33318e81709f4a64ea99c0629e9c522258a.zip
Escape the unique account name
Diffstat (limited to 'libempathy')
-rw-r--r--libempathy/empathy-log-store-empathy.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libempathy/empathy-log-store-empathy.c b/libempathy/empathy-log-store-empathy.c
index 7e50cb12f..abfb276e1 100644
--- a/libempathy/empathy-log-store-empathy.c
+++ b/libempathy/empathy-log-store-empathy.c
@@ -98,8 +98,8 @@ empathy_log_store_empathy_init (EmpathyLogStoreEmpathy *self)
self->priv = priv;
- priv->basedir = g_build_path (G_DIR_SEPARATOR_S, g_get_home_dir (),
- ".gnome2", PACKAGE_NAME, "logs", NULL);
+ priv->basedir = g_build_path (G_DIR_SEPERATOR_S, g_get_user_data_dir (),
+ PACKAGE_NAME, "logs", NULL);
priv->name = g_strdup ("Empathy");
priv->account_manager = empathy_account_manager_dup_singleton ();
@@ -117,7 +117,8 @@ log_store_empathy_get_dir (EmpathyLogStore *self,
priv = GET_PRIV (self);
- account_id = empathy_account_get_unique_name (account);
+ account_id = tp_escape_as_identifier (
+ empathy_account_get_unique_name (account));
if (chatroom)
basedir = g_build_path (G_DIR_SEPARATOR_S, priv->basedir, account_id,
@@ -126,6 +127,8 @@ log_store_empathy_get_dir (EmpathyLogStore *self,
basedir = g_build_path (G_DIR_SEPARATOR_S, priv->basedir,
account_id, chat_id, NULL);
+ g_free (account_id);
+
return basedir;
}