VirtualBox

Changeset 64726 in vbox for trunk/doc/manual/en_US


Ignore:
Timestamp:
Nov 21, 2016 11:05:26 AM (8 years ago)
Author:
vboxsync
Message:

doc/manual: bring the explanation how VirtualBox determines the user's home directory in sync with what the code actually does, and use up to date example

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/en_US/user_Technical.xml

    r60997 r64726  
    3535      <itemizedlist>
    3636        <listitem>
    37           <para>On Windows, this is
    38           <computeroutput>%HOMEDRIVE%%HOMEPATH%</computeroutput>; typically
    39           something like <computeroutput>C:\Documents and
    40           Settings\Username\</computeroutput>.</para>
    41         </listitem>
    42 
    43         <listitem>
    44           <para>On Mac OS X, this is
     37          <para>On Windows, this is the location returned by the
     38          <computeroutput>SHGetFolderPath</computeroutput> function of the
     39          Windows system library Shell32.dll, asking for the user profile. Only
     40          on very old Windows versions which don't have this function
     41          or where it unexpectedly returns an error, there is a fallback based
     42          on environment variables: first
     43          <computeroutput>%USERPROFILE%</computeroutput> is checked, if it
     44          doesn't exist then an attempt with
     45          <computeroutput>%HOMEDRIVE%%HOMEPATH%</computeroutput> is made.
     46          Typical value is
     47          <computeroutput>C:\Users\username</computeroutput>.</para>
     48        </listitem>
     49
     50        <listitem>
     51          <para>On Linux, Mac OS X and Solaris, this is generally taken from
     52          the environment variable <computeroutput>$HOME</computeroutput>,
     53          except for the user
     54          <computeroutput>root</computeroutput> for which it's taken from the
     55          account database (as a workaround for the frequent trouble caused
     56          by users using VirtualBox in combination with the tool
     57          <computeroutput>sudo</computeroutput> which by default doesn't reset
     58          the environment variable <computeroutput>$HOME</computeroutput>).
     59          Typical value on Linux and Solaris is
     60          <computeroutput>/home/username</computeroutput> and on Mac OS X
    4561          <computeroutput>/Users/username</computeroutput>.</para>
    46         </listitem>
    47 
    48         <listitem>
    49           <para>On Linux and Solaris, this is
    50           <computeroutput>/home/username</computeroutput>.</para>
    5162        </listitem>
    5263      </itemizedlist>
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette