On 02/05/2011 12:19 AM, Andreas Volz wrote: > Am Fri, 4 Feb 2011 02:57:42 -0500 schrieb Mike Blumenkrantz: > >> On Fri, 4 Feb 2011 08:38:04 +0100 >> Andreas Volz<li...@brachttal.net> wrote: >> >>> Hello, >>> >>> for a special use case I need E17 to write all its data not in ~/.e >>> but in another directory relative to my home. >>> >>> Reason is that my user has two very different use cases for E17 on >>> my machine: >>> >>> 1. Daily usage as development system >>> >>> 2. Running the embedded system I'm working on (with E17 as window >>> manager) >>> >>> But 2 has a very different configuration (e.g. experimental modules) >>> than 1. >>> >>> I tried the profile suport, but wasn't happy. It seems to be not >>> 100% stable as I got some E crashes, How ever, I don't like to >>> blame someone for it. I simply would run a second data instance of >>> E17 (e.g. in a Xephyr session). >>> >>> If I've to modify E17 source code or some library code please tell >>> me where ~/.e is defined. Then I'll simply patch and install a >>> local E17 version in another directory on my machine for use case 2. >>> >>> regards >>> Andreas >>> >> cd e/src/bin >> grep '\.e/' *.c >> e_main.c: e_path_default_path_append(path_images, "~/.e/e/images"); >> e_main.c: e_path_default_path_append(path_fonts, "~/.e/e/fonts"); >> e_main.c: e_path_default_path_append(path_themes, "~/.e/e/themes"); >> e_main.c: e_path_default_path_append(path_icons, "~/.e/e/icons"); >> e_main.c: e_path_default_path_append(path_modules, >> "~/.e/e/modules"); e_main.c: >> e_path_default_path_append(path_backgrounds, "~/.e/e/backgrounds"); >> e_main.c: e_path_default_path_append(path_messages, >> "~/.e/e/locale"); e_user.c: _e_user_dir_len = >> e_user_homedir_concat(dir, sizeof(dir), ".e/e"); e_user.c: * >> Concatenate '~/.e/e' and @a path. e_user.c: * same as >> snprintf("~/.e/e/"fmt, ...). >> >> ;) > > Hi, > > I just wrote a little patch to implement this use case for me: > > http://codepad.org/LxM1Grii > > I just have to: > > export E_HOME=.ex > unset E_CONF_PROFILE # if you run E17 as host!!! > Xepyr_E17 > > ----Xephy_E17---- > #!/bin/sh > > Xephyr -ac -screen 1024x768 :1& > > sleep 3s&& /opt/e17/bin/enlightenment_start -display :1 > ----Xephy_E17---- > > This runs a complete separated instance of E17. I'm not sure if all E > user application check to use the directory, but for me it's ok. I'm > just interested in separate E profile settings for this use case. > > As I seen no danger I'll commit this code if nobody cries over the > weekend. :-) > > regards > Andreas >
Principle is fine, but use e_user_dir_concat_static() when adding a static postfix to user dir. And formatting is wrong for e_config.c S. ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel