Claus Folke Brobak created JRUBY-6338:
-----------------------------------------

             Summary: JRuby does not look for .jrubyrc in home directory on 
Windows
                 Key: JRUBY-6338
                 URL: https://jira.codehaus.org/browse/JRUBY-6338
             Project: JRuby
          Issue Type: Bug
         Environment: jruby 1.6.5.1 (ruby-1.8.7-p330) (2011-12-27 1bf37c2) 
(Java HotSpot(TM) Client VM 1.6.0_21) [Windows XP-x86-java]
            Reporter: Claus Folke Brobak
            Assignee: Thomas E Enebo
            Priority: Minor


JRuby seems to be looking for the .jrubyrc file in the directory pointed to by 
environment variable USERPROFILE. However, this may or may not be the home 
directory of the user. I believe the "right" way to locate the home directory 
is to use environment variables HOMEDRIVE + HOMEPATH.

The Microsoft documentation says:

HOMEDRIVE: Returns which local workstation drive letter is connected to the 
user's home directory. Set based on the value of the home directory. The user's 
home directory is specified in Local Users and Groups.

HOMEPATH: Returns the full path of the user's home directory. Set based on the 
value of the home directory. The user's home directory is specified in Local 
Users and Groups.

USERPROFILE: Returns the location of the profile for the current user.

Also, a number of other configuration files are located in the HOMEDRIVE + 
HOMEPATH directory, e.g. ".gemrc", ".irbrc", ".cvsrc", "_vimrc" and 
".gitconfig".

I should add that USERPROFILE and HOMEDRIVE + HOMEPATH would by default point 
to the same directory. I our company this is not the case and this is specified 
in Active Directory when a user is created by our AD administrators.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to