- use the wrapper to get the home directory

SVN revision: 28255
This commit is contained in:
Dan Sinclair 2007-02-05 10:32:29 +00:00 committed by Dan Sinclair
parent c786670bd3
commit c8fa2c7bbf
2 changed files with 3 additions and 4 deletions

View File

@ -367,6 +367,7 @@ enlightenment_start_LDFLAGS = @dlopen_libs@
enlightenment_thumb_SOURCES = \
e.h \
e_thumb_main.c \
e_user.c \
e_sha1.c
enlightenment_thumb_LDFLAGS = @e_libs@ @dlopen_libs@

View File

@ -46,7 +46,6 @@ main(int argc, char **argv)
{
// char buf[4096];
int i;
char *home;
/* FIXME: make this configurable */
// nice(20);
@ -82,9 +81,8 @@ main(int argc, char **argv)
ecore_desktop_paths_regen();
*/
home = getenv("HOME");
if (!home) home = "/tmp";
snprintf(_thumbdir, sizeof(_thumbdir), "%s/.e/e/fileman/thumbnails", home);
snprintf(_thumbdir, sizeof(_thumbdir), "%s/.e/e/fileman/thumbnails",
e_user_homedir_get());
ecore_file_mkpath(_thumbdir);
if (_e_ipc_init()) ecore_main_loop_begin();