diff options
author | Carsten Haitzler <raster@rasterman.com> | 2006-07-15 16:29:14 +0000 |
---|---|---|
committer | Carsten Haitzler <raster@rasterman.com> | 2006-07-15 16:29:14 +0000 |
commit | 6c4b19d5d034f66aacbdda246b5b0363bc8d374d (patch) | |
tree | 4352866bf2099ab59c2a9d505b5f8f3031c881eb /src/bin/e_user.c | |
parent | 083d224c3e5fc3cd5bb6d8481adbd47616780a49 (diff) | |
download | enlightenment-6c4b19d5d034f66aacbdda246b5b0363bc8d374d.tar.gz |
workign on efm2... kind of workign at the basics now...
SVN revision: 23949
Diffstat (limited to 'src/bin/e_user.c')
-rw-r--r-- | src/bin/e_user.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/bin/e_user.c b/src/bin/e_user.c index 1512bbd119..5d889d1c5d 100644 --- a/src/bin/e_user.c +++ b/src/bin/e_user.c @@ -8,8 +8,15 @@ EAPI char * e_user_homedir_get(void) { char *homedir; + int len; homedir = getenv("HOME"); if (!homedir) return strdup("/tmp"); + len = strlen(homedir); + while ((len > 1) && (homedir[len - 1] == '/')) + { + homedir[len - 1] = 0; + len--; + } return strdup(homedir); } |