[Mono-list] Environment.SpecialFolder.MyDocuments question

Ian Norton ian.norton-badrul at thales-esecurity.com
Tue Aug 23 02:45:31 EDT 2011


AIUI there is no hard and fast rule over what these resolve to on each linux
distro.

On my debian system I have:

                         Desktop  = /home/inb/Desktop
                        Programs  =
                     MyDocuments  = /home/inb
                     MyDocuments  = /home/inb
                       Favorites  =
                         Startup  =
                          Recent  =
                          SendTo  =
                       StartMenu  =
                         MyMusic  = /home/inb/Music
                DesktopDirectory  = /home/inb/Desktop
                      MyComputer  =
                       Templates  = /home/inb/Templates
                 ApplicationData  = /home/inb/.config
            LocalApplicationData  = /home/inb/.local/share
                   InternetCache  =
                         Cookies  =
                         History  =
           CommonApplicationData  = /usr/share
                          System  =
                    ProgramFiles  =
                      MyPictures  = /home/inb/Pictures
              CommonProgramFiles  =

All except the AppliationData ones are likley to be different from one
linux system to another.

See also:

http://docs.go-mono.com/index.aspx?link=T%3aSystem.Environment%2bSpecialFolder

Regards

Ian


On Mon, Aug 22, 2011 at 10:17:13PM +0100, Paul F. Johnson wrote:
> Hi,
> 
> Is this correct?
> 
> If I have
> 
> Console.WriteLine ("{0}", Environment.SpecialFolder.MyDocuments);
> 
> on my Linux box it returns "Personal" rather than ~
> 
> Under WinXP and 7 it returns the path to MyDocuments.
> 
> Is this the correct behaviour or should it (under Linux) return ~?
> 
> TIA
> 
> Paul
> 
> P.S. Using mono-2.10
> --
> Vertraue mir, ich weiss, was ich mache...
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list


More information about the Mono-list mailing list