title: Get and set enviroment variables on mono and possible alternative
body: <p>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.</p>
  
  <p>System.Environment.SetEnvironmentVariable("PHMQ", install_dir , EnvironmentVariableTarget.Machine);</p>
  
  <p>Now i just tryed to run it on Mono, and when the programs run it throw an exception.
  The PHMQ service is not installed.</p>
  
  <p>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 ?)</p>
  
  <p>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</p>
  
  <p>Any ideas ?</p>