Nobuyoshi Nakada
9/14/2007 4:25:00 AM
Hi,
At Fri, 14 Sep 2007 04:19:04 +0900,
Trans wrote in [ruby-talk:268970]:
> I have a little app that needs to store session data. I assume the
> best place to store it is in one's home directory, but I need this app
> to be cross-platform. I glanced through all rbconfig.rb's
> Config::CONFIG settings but did not see anything for it. How does one
> access a cross-platform home directory?
There is no static value.
FYI, in 1.9, if ENV["HOME"] isn't set, it will be set to
1) ENV["HOMEDRIVE"] + ENV["HOMEPATH"]
2) ENV["USERPROFILE"] or
3) "Personal" special folder
in the above order.
--
Nobu Nakada