1.1 --- a/src/paths_unix.c Sat Jun 13 00:50:48 2009 +0000
1.2 +++ b/src/paths_unix.c Thu Jan 26 20:16:51 2012 +1000
1.8 +#include <glib/gstrfuncs.h>
1.10 #include "lxdream.h"
1.11 +#include "config.h"
1.13 const char *get_sysconf_path()
1.17 return PACKAGE_PLUGIN_DIR;
1.20 +static char *user_data_path = NULL;
1.22 +const char *get_user_data_path()
1.24 + if( user_data_path == NULL ) {
1.25 + char *home = getenv("HOME");
1.26 + user_data_path = g_strdup_printf( "%s/.lxdream", home );
1.28 + return user_data_path;
1.30 \ No newline at end of file