[MonoDevelop] Application configuration files

Paddy Joy mono at paddyjoy.com
Wed Dec 21 17:50:41 EST 2005


Thanks for all the help/ideas from everyone.

Is there a way I can determine which operating system is being used for 
example:

If (Windos)
{
Use config file "c:\program files\myapp\myapp.conf"
}
else if(Linux)
{
Use "/etc/myapp.conf"
}

Paddy


Victor Rafael Rivarola Soerensen (FANATICO y LOCO por Cristo) wrote:
> It also reduces the namespace by creating a new namespace (directory)
> for each app, so you end up having one entry for each app within a
> .config directory.
>
> So:
>
> $ cd ~/.config
> $ ls
> bless MonoDevelop monodoc
> $ cd bless
> history.xml  last.session  preferences.xml
> $ cd
>
> Mozilla (Firefox, Thunderbird, Mozilla, NVU, etc) and KDE also do the
> same thing (on their own directory).
>
> Jesus bless you all,
>
> Víctor Rafael Rivarola
>
> 2005/12/20, knocte <knocte at gmail.com>:
>   
>> Salvatore Scarciglia wrote:
>>     
>>> Hi,
>>> in my application I've used this directory:
>>>
>>> Environment.GetFolderPath(Environment.SpecialFolder.Personal);
>>>
>>> saving user preference file as an Hidden file (ie; .donalduck)
>>>
>>>       
>> MD itself seems to save in a subdirectory inside a .config directory
>> that is in the personal folder (/home/user/.config/MonoDevelop/). I
>> think this is a better practice (so as not to fill the personal
>> directory with many hidden config files).
>>
>> Regards,
>>
>>     Andrew   [ knocte ]
>>
>> --
>>
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>>     
>
>
> --
> FANÁTICO
> "Por cuanto eres tibio, y no frío ni caliente, te vomitaré de mi boca."
> Apocalipsis 3:16
>
> LOCO
> "Porque la Palabra de la Cruz es locura para los que se pierden; pero a
> los que se salvan, esto es, a nosotros, es poder de Dios."
> 1 Corintios 1:18
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>   


More information about the Monodevelop-list mailing list