[emerillon] Properly set the user's local data dir path
- From: Pierre-Luc Beaudoin <plbeaudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [emerillon] Properly set the user's local data dir path
- Date: Sat, 10 Oct 2009 18:36:06 +0000 (UTC)
commit 2845e9df5ab70dea1a269f398b505d83915c6212
Author: Pierre-Luc Beaudoin <pierre-luc beaudoin novopia com>
Date: Fri Oct 9 10:37:44 2009 -0400
Properly set the user's local data dir path
emerillon/main.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/emerillon/main.c b/emerillon/main.c
index b02875e..7f611d5 100644
--- a/emerillon/main.c
+++ b/emerillon/main.c
@@ -36,9 +36,17 @@ main (int argc,
{
EthosManager *manager;
GtkWidget *window;
- gchar *plugin_dirs[3] = {"~/.local/share/emerillon/plugins",
- EMERILLON_PLUGINDIR,
- NULL };
+ gchar *user_data;
+ gchar *plugin_dirs[3] = {EMERILLON_PLUGINDIR,
+ NULL,
+ NULL};
+
+ user_data = g_build_path (G_DIR_SEPARATOR_S,
+ g_get_user_data_dir (),
+ "emerillon",
+ "plugins",
+ NULL);
+ plugin_dirs[1] = user_data;
bindtextdomain (PACKAGE, EMERILLON_LOCALEDIR);
bind_textdomain_codeset (PACKAGE, "UTF-8");
@@ -63,5 +71,6 @@ main (int argc,
gtk_main ();
+ g_free (user_data);
return 0;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]