Location of special folders on Linux

One thing that always confuses me is how the special folders of Environment.SpecialFolder translate into real directories. Some are really obvious, especially on Windows, but on Mono on Linux it’s not so obvious. So I wrote a little app that tells where those folders are. Here are the results:

Environment.SpecialFolder .NET 3.5 on Windows 7 (32bit) Mono on Ubuntu 10.10
Personal C:\Users\%USERNAME%\Documents $HOME
Desktop C:\Users\%USERNAME%\Desktop $HOME/Desktop (or $XDG_DESKTOP_DIR if set)
MyComputer “” “”
Programs C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs “”
MyDocuments C:\Users\%USERNAME%\Documents $HOME
Favorites C:\Users\%USERNAME%\Favorites “”
Startup C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup “”
Recent C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Recent “”
SendTo C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\SendTo “”
StartMenu C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Start Menu “”
MyMusic C:\Users\%USERNAME%\Music $HOME/Music (or $XDG_MUSIC_DIR if set)
DesktopDirectory C:\Users\%USERNAME%\Desktop $HOME/Desktop (or $XDG_DESKTOP_DIR if set)
Templates C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Templates “”
ApplicationData C:\Users\%USERNAME%\AppData\Roaming $HOME/.config (or $XDG_CONFIG_HOME if set)
LocalApplicationData C:\Users\%USERNAME%\AppData\Local $HOME/.local/share (or $XDG_DATA_HOME if set)
InternetCache C:\Users\%USERNAME%\AppData\Local\Microsoft\Windows\Temporary Internet Files “”
Cookies C:\Users\%USERNAME%\AppData\Roaming\Microsoft\Windows\Cookies “”
History C:\Users\%USERNAME%\AppData\Local\Microsoft\Windows\History “”
CommonApplicationData C:\ProgramData /usr/share
System C:\Windows\system32 “”
ProgramFiles C:\Program Files “”
MyPictures C:\Users\%USERNAME%\Pictures $HOME/Pictures (or $XDG_PICTURES_DIR if set)
CommonProgramFiles C:\Program Files\Common Files=C:\Users\%USERNAME%\Documents “”

See also http://standards.freedesktop.org/basedir-spec/basedir-spec-0.6.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s