Enlightenment CVS committal
Author : rephorm
Project : e17
Module : apps/e
Dir : e17/apps/e/src/bin
Modified Files:
e_thumb_main.c
Log Message:
fallback to /tmp if $HOME isn't set
===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_thumb_main.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -3 -r1.19 -r1.20
--- e_thumb_main.c 4 Feb 2007 12:16:32 -0000 1.19
+++ e_thumb_main.c 4 Feb 2007 12:28:03 -0000 1.20
@@ -44,8 +44,9 @@
int
main(int argc, char **argv)
{
- char buf[4096];
+// char buf[4096];
int i;
+ char *home;
/* FIXME: make this configurable */
// nice(20);
@@ -80,9 +81,10 @@
ecore_desktop_paths_append_system(ECORE_DESKTOP_PATHS_ICONS, buf);
ecore_desktop_paths_regen();
*/
-
- snprintf(_thumbdir, sizeof(_thumbdir), "%s/.e/e/fileman/thumbnails",
- getenv("HOME"));
+
+ home = getenv("HOME");
+ if (!home) home = "/tmp";
+ snprintf(_thumbdir, sizeof(_thumbdir), "%s/.e/e/fileman/thumbnails", home);
ecore_file_mkpath(_thumbdir);
if (_e_ipc_init()) ecore_main_loop_begin();
-------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs