I got a little c# dll that implements a message queue service and on windows it runs perfectly. To locate all the queues i use an enviroment variable stored in Machine during the installation.
System.Environment.SetEnvironmentVariable("PHMQ", install_dir , EnvironmentVariableTarget.Machine);
Now i just tryed to run it on Mono, and when the programs run it throw an exception. The PHMQ service is not installed.
After 2 hours of search, i discovered that Mono doesn't really store this kind of variables it just send them to null. (a simple text file was too simple ?)
So, the question is: How can i solve this problem ? The first idea was : if is running on linux put it in a specific folder like /opt, but it's a dll, if do it in this way any program that want to use it must be executed like root
Any ideas ?