From 73be8d1cfdad2ba046bb0729a415db20ceab73dd Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 6 Dec 2000 20:25:11 +0000 Subject: [PATCH] Added automatic translation of the config file to the new format. Updated documentation. --- README | 14 +-- documentation/wine.conf.man.in | 181 ++++++++++++++++----------------- documentation/wine.man.in | 16 +-- files/profile.c | 88 +++++++++++++++- wine.ini | 6 -- 5 files changed, 191 insertions(+), 114 deletions(-) diff --git a/README b/README index c6542fc655e..542be0e1272 100644 --- a/README +++ b/README @@ -97,14 +97,16 @@ Once Wine has been built correctly, you can do "make install"; this will install the wine executable, the Wine man page, and a few other needed files. -Wine requires a configuration file named wine.conf. Its default location is -/usr/local/etc, but you can supply a different name when configuring wine by -using the --prefix or --sysconfdir options to ./configure. You can also override -the global configuration file with a .winerc file in your home directory. +Wine requires a configuration file named wine.conf. Its default +location is /usr/local/etc, but you can supply a different name when +configuring wine by using the --prefix or --sysconfdir options to +./configure. You can also override the global configuration file with +a file named "config" in your ~/.wine directory. The format of this file is explained in the man page. The file -wine.ini contains an example configuration file which has to be adapted -and copied to one of the two locations mentioned above. +documentation/samples/config contains an example configuration file +which has to be adapted and copied to one of the two locations +mentioned above. See http://www.winehq.com/config.html for further configuration hints. diff --git a/documentation/wine.conf.man.in b/documentation/wine.conf.man.in index fbdfb2641a0..9113a9fb8d2 100644 --- a/documentation/wine.conf.man.in +++ b/documentation/wine.conf.man.in @@ -1,25 +1,25 @@ .\" -*- nroff -*- -.TH WINE.CONF 5 "July 16, 1999" "Version 990704" "Wine Configuration File" +.TH WINE.CONF 5 "December 5, 2000" "Version 20001202" "Wine Configuration File" .SH NAME wine.conf \- Wine configuration file .SH DESCRIPTION .B wine expects a configuration file ( .I @sysconfdir@/wine.conf -), which should -conform to the following rules (the format is just like a Windows .ini -file). Common locations are /usr/local/etc/wine.conf or -(in some distributions) /etc/wine.conf. The actual directory -where that file resides may be specified during the execution of the +), which should conform to the following rules. Common locations are +/usr/local/etc/wine.conf or (in some distributions) +/etc/wine.conf. The actual directory where that file resides may be +specified during the execution of the .B configure -script with the --sysconfdir option. Alternatively, you may have a -.I .winerc -file of this format in your home directory or have the environment variable -.B WINE_INI -pointing to a configuration file, or use the --config option on the command -line. -A sample configuration file is available as wine.ini in the base directory -of the Wine source distribution. +script with the --sysconfdir option. Alternatively, you may have a +file named +.I config +in this format in your ~/.wine directory or in the directory named in +the +.B WINEPREFIX +environment variable. A sample configuration file is available as +.I documentation/samples/config +in the Wine source distribution. .SH CONFIGURATION FILE FORMAT All entries are grouped in sections; a section begins with the line .br @@ -28,13 +28,15 @@ All entries are grouped in sections; a section begins with the line and continues until the next section starts. Individual entries consist of lines of the form .br -.I entry=value +.I """entry""=""value""" .br -The value can be any text string, optionally included in single or -double quotes; it can also contain references to environment variables +The entry and value can be any text strings, included in double +quotes; it can also contain references to environment variables surrounded by .I ${}. -Supported section names and entries are listed below. +Inside the double quotes, special characters, backslashes and quotes +must be escaped with backslashes. Supported section names and entries +are listed below. .PP .B [Drive X] .br @@ -44,7 +46,7 @@ drive, since most Windows applications require a DOS/MS-Windows based disk drive & directory scheme. There is one such section for every drive you want to configure. .PP -.I format: Path = +.I format: """Path""=""""" .br default: none .br @@ -52,52 +54,52 @@ If you mounted your dos partition as .I /dos and installed Microsoft Windows in C:\\WINDOWS then you should specify -.I Path=/dos +.I """Path""=""/dos""" in the .I [Drive C] section. .PP -.I format: Type = +.I format: """Type""=""""" .br -default: hd +default: "hd" .br Used to specify the drive type this drive appears as in Windows -or DOS programs; supported types are floppy, hd, cdrom -and network. +or DOS programs; supported types are "floppy", "hd", "cdrom" +and "network". .PP -.I format: Label =