Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_int_border_menu.c Log Message: Don't use getenv("HOME") directly. =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_int_border_menu.c,v retrieving revision 1.43 retrieving revision 1.44 diff -u -3 -r1.43 -r1.44 --- e_int_border_menu.c 6 Sep 2006 12:09:52 -0000 1.43 +++ e_int_border_menu.c 17 Sep 2006 11:25:06 -0000 1.44 @@ -559,8 +559,15 @@ { if (bname) { - snprintf(path, sizeof(path), "%s/.e/e/applications/all/%s.desktop", getenv("HOME"), bname); - a = e_app_empty_new(path); + char *homedir; + + homedir = e_user_homedir_get(); + if (homedir) + { + snprintf(path, sizeof(path), "%s/.e/e/applications/all/%s.desktop", homedir, bname); + free(homedir); + a = e_app_empty_new(path); + } } else a = e_app_empty_new(NULL); ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs