Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

%HOMEDRIVE% Set to Something Other Than C:

150 views
Skip to first unread message

JB

unread,
Sep 30, 2011, 9:40:46 AM9/30/11
to RailsInstaller
In our corporate environment, %HOMEDRIVE% is set to H: drive (my
public network share) and %HOMEPATH% doesn't exist. How can I get
Railsinstall to NOT put my .ssh directory on my public H: drive? Or
better yet, now that it is there, how can I move it to my C:/Users/
username home directory?

Luis Lavena

unread,
Sep 30, 2011, 9:44:17 AM9/30/11
to railsin...@googlegroups.com

That is actually Ruby's fault.

The assumption on Windows is that your home folder is in the following
environment variables:

HOME
HOMEDRIVE + HOMEPATH
USERPROFILE

And the problem in your case is that HOMEDRIVE is a network drive.

You can test this behavior doing File.expand_path("~")

I recommend you set HOME variable and point it to the directory you want.

Perhaps the installer should be checking if HOME is set before.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

Reply all
Reply to author
Forward
0 new messages