title: What is the cross-platform way of obtaining the path to the local application data directory?
body: <p>What I need is a platform-independent way of obtaining the path to the local application data directory. <code>System.getenv("LOCALAPPDATA")</code> seems to work only with Windows. How do I go about this?</p>