Commit f949d14f authored by Diego Pettenò's avatar Diego Pettenò Committed by Alexandre Julliard

Updated the documentation telling to use the

HKEY_CURRENT_USER/Environment key instead of the [wine] section for Path, Temp and System variables.
parent 12f49fb9
...@@ -359,16 +359,13 @@ ...@@ -359,16 +359,13 @@
<sect3 id="config-wine"> <sect3 id="config-wine">
<title>The [wine] Section </title> <title>The [wine] Section </title>
<para> <para>
The [wine] section of the configuration file contains all kinds The [wine] section of the configuration file contains basic settings for Wine.
of general settings for Wine.
</para> </para>
<para> <para>
<programlisting> <programlisting>
"Windows" = "c:\\windows" "Windows" = "c:\\windows"
"System" = "c:\\windows\\system"
"Temp" = "c:\\temp"
"Path" = "c:\\windows;c:\\windows\\system;c:\\blanco"
"ShowDirSymlinks" = "1" "ShowDirSymlinks" = "1"
"ShowDotFiles" = "1"
</programlisting> </programlisting>
For a detailed description of drive layer configuration and For a detailed description of drive layer configuration and
the meaning of these parameters, please look at the <link the meaning of these parameters, please look at the <link
...@@ -973,35 +970,6 @@ ln -s /dev/lp0 lpt1 ...@@ -973,35 +970,6 @@ ln -s /dev/lp0 lpt1
recommended, as Windows programs always assume write access recommended, as Windows programs always assume write access
to the Windows directory! to the Windows directory!
</para> </para>
<para>
<programlisting>"System" = "c:\\windows\\system"</programlisting>
This sets up where the windows system files are. The Windows
system directory should reside below the directory used for the
<literal>Windows</literal> setting.
Thus when using the example above, the system directory would be
<filename>/usr/local/wine_c/windows/system</filename>.
Again, no trailing slash, and write access!
</para>
<para>
<programlisting>"Temp" = "c:\\temp"</programlisting> This should
be the directory you want your temp files stored in,
/usr/local/wine_c/temp in our example.
Again, no trailing slash, and <emphasis>write
access</emphasis>!!
</para>
<para>
<programlisting>"Path" = "c:\\windows;c:\\windows\\system;c:\\blanco"</programlisting>
Behaves like the <envar>PATH</envar> setting on UNIX
boxes. When wine is run like <userinput>wine
sol.exe</userinput>, if <filename>sol.exe</filename>
resides in a directory specified in the
<literal>Path</literal> setting, wine will run it (Of
course, if <filename>sol.exe</filename> resides in the
current directory, wine will run that one). Make sure it
always has your <filename>windows</filename> directory and
system directory (For this setup, it must have
<filename>"c:\\windows;c:\\windows\\system"</filename>).
</para>
<para id="dirsymlinks"> <para id="dirsymlinks">
<programlisting>"ShowDirSymlinks" = "1"</programlisting> <programlisting>"ShowDirSymlinks" = "1"</programlisting>
Wine doesn't pass directory symlinks to Windows programs by Wine doesn't pass directory symlinks to Windows programs by
...@@ -1017,6 +985,9 @@ ln -s /dev/lp0 lpt1 ...@@ -1017,6 +985,9 @@ ln -s /dev/lp0 lpt1
Windows programs when using the above method! (in other words: Windows programs when using the above method! (in other words:
enabling it is certainly not recommended) enabling it is certainly not recommended)
</para> </para>
<para>Old Path, Temp, System configuration are now moved into the
registry. See the <link linkend="environment-variables">Environment
Variables</link> paragraph.</para>
</sect2> </sect2>
<sect2> <sect2>
......
...@@ -820,7 +820,6 @@ ...@@ -820,7 +820,6 @@
Windows=c:\windows Windows=c:\windows
System=c:\windows\system System=c:\windows\system
Temp=e:\ Temp=e:\
Path=c:\windows;c:\windows\system;c:
</screen> </screen>
<para> <para>
In <filename>/var/lib/wine/windows</filename>, you will need to In <filename>/var/lib/wine/windows</filename>, you will need to
......
...@@ -88,16 +88,14 @@ Usage: wine PROGRAM [ARGUMENTS...] Run the specified program ...@@ -88,16 +88,14 @@ Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
<para> <para>
The first argument should be the name of the file you The first argument should be the name of the file you
want <command>wine</command> to execute. If the executable is want <command>wine</command> to execute. If the executable is
in the <parameter>Path</parameter> parameter in the in the <parameter>Path</parameter> environment variable, you can
configuration file, you can simply give the executable file simply give the executable file name. However, if the executable
name. However, if the executable is not in is not in <parameter>Path</parameter>, you must give the full path to
<parameter>Path</parameter>, you must give the full path to
the executable (in Windows format, not UNIX format!). For the executable (in Windows format, not UNIX format!). For
example, given a <parameter>Path</parameter> of the following: example, given a <parameter>Path</parameter> of the following:
</para> </para>
<screen> <screen>
[wine] Path="c:\windows;c:\windows\system;e:\;e:\test;f:\"
"Path"="c:\\windows;c:\\windows\\system;e:\\;e:\\test;f:\\"
</screen> </screen>
<para> <para>
You could run the file You could run the file
...@@ -375,17 +373,45 @@ Usage: wine PROGRAM [ARGUMENTS...] Run the specified program ...@@ -375,17 +373,45 @@ Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
place the setting into /etc/profile, or also ~/.bashrc in the case of place the setting into /etc/profile, or also ~/.bashrc in the case of
bash. bash.
</para> </para>
<para>Note however that there are some exceptions to the rule:
If you want to change the PATH, SYSTEM or TEMP variables, the of course
you can't modify it that way, since this will alter the Unix environment
settings. Instead, you should set them into the registry. To set them
you should launch <userinput>wine regedit</userinput> and then go to the
<screen>HKEY_CURRENT_USER/Environment</screen> key. Now you can create
or modify the values of the variables you need
</para>
<para> <para>
Note however that there is an exception to the rule: <programlisting>"System" = "c:\\windows\\system"</programlisting>
If you want to change the PATH environment variable, then of This sets up where the windows system files are. The Windows
course you can't modify it that way, since this will alter the system directory should reside below the directory used for the
Unix PATH environment setting. Instead, you should set the <literal>Windows</literal> setting.
WINEPATH environment variable. An alternative way to Thus when using /usr/local/wine_c_windows as Windows path,
indicate the content of the DOS PATH environment variable would the system directory would be
be to change the "path" setting in the wine config file's <link <filename>/usr/local/wine_c/windows/system</filename>.
linkend="config-wine">[wine]</link> section. It must be set with no trailing slash, and you must be sure that
you have write access to it.
</para>
<para>
<programlisting>"Temp" = "c:\\temp"</programlisting> This should
be the directory you want your temp files stored in,
/usr/local/wine_c/temp in our previous example.
Again, no trailing slash, and <emphasis>write
access</emphasis>!!
</para>
<para>
<programlisting>"Path" = "c:\\windows;c:\\windows\\system;c:\\blanco"</programlisting>
Behaves like the <envar>PATH</envar> setting on UNIX
boxes. When wine is run like <userinput>wine
sol.exe</userinput>, if <filename>sol.exe</filename>
resides in a directory specified in the
<literal>Path</literal> setting, wine will run it (Of
course, if <filename>sol.exe</filename> resides in the
current directory, wine will run that one). Make sure it
always has your <filename>windows</filename> directory and
system directory (For this setup, it must have
<filename>"c:\\windows;c:\\windows\\system"</filename>).
</para> </para>
</sect1> </sect1>
<sect1 id="CUI-programs"> <sect1 id="CUI-programs">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment