[Mono-dev] Patch for environment specific location for .mono folder

2010-06-01 Thread Tom Philpot
Attached is a patch that allows the user (or an embedded application) to set MONO_USER_CONFIG to specify a directory location for the .mono folder, similar to the MONO_CONFIG environment variable for mono configuration folder. We have an app which embeds Mono and we'd like to be certain that oth

Re: [Mono-dev] Patch for environment specific location for .mono folder

2010-06-01 Thread Tom Philpot
After digging a little bit further, it seems there are more issues with this patch: First, the AOT-Runtimes assumes that .mono is under g_get_home_dir() Secondly, System.Environment.SpecialFolder.Personal returns internalGetHome which is g_get_home_dir() Does it make sense to change this to a

Re: [Mono-dev] Patch for environment specific location for .mono folder

2010-06-01 Thread Zoltan Varga
Hi, The relevant code in aot-runtime.c is just some experimental code, its not used by anyone, so you can ignore it. Zoltan On Tue, Jun 1, 2010 at 7:42 PM, Tom Philpot wrote: > After digging a little bit further, it seems there are more issues with > this patch: > >

Re: [Mono-dev] Patch for environment specific location for .mono folder

2010-06-01 Thread Tom Philpot
On third thought, the patch below may not be that necessary for our case as the XDG_DATA_HOME, XDG_CONFIG_HOME and MONO_SHARED_DIR can all be remapped based on environment variables. The Registry code UnixRegistryApi.cs assumes that .mono will live under the folder returned by g_get_home_dir() a