--- a/src/paths_unix.c Sat Jun 13 00:50:48 2009 +0000 +++ b/src/paths_unix.c Wed Dec 14 21:51:55 2011 +1000 @@ -17,8 +17,11 @@ */ #include +#include +#include #include "lxdream.h" +#include "config.h" const char *get_sysconf_path() { @@ -34,3 +37,14 @@ { return PACKAGE_PLUGIN_DIR; } + +static char *user_data_path = NULL; + +const char *get_user_data_path() +{ + if( user_data_path == NULL ) { + char *home = getenv("HOME"); + user_data_path = g_strdup_printf( "%s/.lxdream", home ); + } + return user_data_path; +} \ No newline at end of file