Enlightenment CVS committal Author : titansoccer15 Project : e17 Module : proto
Dir : e17/proto/ephoto/src Modified Files: ephoto.c Log Message: Ephoto now allows for a directory argument. I.E. "ephoto /home/titansoccer15" will open ephoto using the /home/titansoccer15 directory. =================================================================== RCS file: /cvsroot/enlightenment/e17/proto/ephoto/src/ephoto.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- ephoto.c 15 Mar 2006 04:22:37 -0000 1.5 +++ ephoto.c 16 Mar 2006 05:34:08 -0000 1.6 @@ -35,7 +35,13 @@ m->imagelist = ecore_dlist_new(); /*****************************************/ /****Get db directory****/ - char *home = getenv("HOME"); + char *home; + if ( argv[1] != NULL && ecore_file_is_dir(argv[1]) ) { + home = argv[1]; + } + else { + home = getenv("HOME"); + } //snprintf(tempdb, PATH_MAX, "%s/ephoto_images", home); //if ( !ecore_file_is_dir(tempdb) ) { // ecore_file_mkdir(tempdb); ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs