On Wed, 6 Apr 2011, Gustavo Sverzut Barbieri wrote:

On Wed, Apr 6, 2011 at 2:36 PM, Vincent Torri <vto...@univ-evry.fr> wrote:


On Wed, 6 Apr 2011, Gustavo Sverzut Barbieri wrote:

On Wed, Apr 6, 2011 at 1:51 PM, Vincent Torri <vto...@univ-evry.fr> wrote:

hey

can someone pply the patch below for me, please ?

thanks

Vincent

Index: src/lib/elm_config.c
===================================================================
--- src/lib/elm_config.c        (révision 58389)
+++ src/lib/elm_config.c        (copie de travail)
@@ -672,7 +672,11 @@
   size_t user_dir_len, off;
   va_list ap;

+#ifdef _WIN32
+   home = evil_homedir_get();
+#else
   home = getenv("HOME");
+#endif

I guess it would be easier if in some _init() you putenv() $HOME, then
it would work everywhere.

unfortunately, putenv does not exist on Windows CE. evil_homedir_get()
manages the HOME with eveything (MSYS, cygwin, etc...).

but there is a getenv()?

No. No environment variables on Windows CE. The $HOME is actually a specific directory (i never said that evil_homedir_get() always calls getenv() :-p )

Vincent

Where it's acquired? Maybe you should
overload getenv() to query an alternate database for cases like $HOME,
trying to make it as compatible as possible?


--
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: barbi...@gmail.com
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to