Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_user.c Log Message: Formatting & whitespace removal. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_user.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -3 -r1.7 -r1.8 --- e_user.c 15 Apr 2007 17:26:25 -0000 1.7 +++ e_user.c 4 Dec 2007 22:20:25 -0000 1.8 @@ -9,7 +9,7 @@ { char *homedir; int len; - + homedir = getenv("HOME"); if (!homedir) return "/tmp"; len = strlen(homedir); @@ -30,9 +30,10 @@ e_user_desktop_dir_get(void) { static char dir[PATH_MAX] = ""; + if (!dir[0]) - snprintf(dir, sizeof(dir), "%s/applications", efreet_data_home_get()); - + snprintf(dir, sizeof(dir), "%s/applications", efreet_data_home_get()); + return dir; } @@ -45,10 +46,9 @@ e_user_icon_dir_get(void) { static char dir[PATH_MAX] = ""; + if (!dir[0]) snprintf(dir, sizeof(dir), "%s/icons", efreet_data_home_get()); - + return dir; } - - ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs