| 1 |
.\" Copyright (C) 2017 Alessandro Menti |
| 2 |
.\" |
| 3 |
.\" This program is free software; you can redistribute it and/or |
| 4 |
.\" modify it under the terms of the GNU General Public License |
| 5 |
.\" as published by the Free Software Foundation; either version 2 |
| 6 |
.\" of the License, or (at your option) any later version. |
| 7 |
.\" |
| 8 |
.\" This program is distributed in the hope that it will be useful, |
| 9 |
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 |
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 |
.\" GNU General Public License for more details. |
| 12 |
.\" |
| 13 |
.\" You should have received a copy of the GNU General Public License |
| 14 |
.\" along with this program; if not, write to the Free Software |
| 15 |
.\" Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 16 |
.\" Or try here: http://www.fsf.org/copyleft/gpl.html |
| 17 |
.\" |
| 18 |
.TH FGFSRC 5 2017-05-28 FlightGear "FlightGear man pages" |
| 19 |
.SH NAME |
| 20 |
fgfsrc \- FlightGear command-line options file |
| 21 |
.SH DESCRIPTION |
| 22 |
.B fgfsrc |
| 23 |
is a file containing command-line options read by |
| 24 |
.BR fgfs (1) |
| 25 |
at startup. This file is meant for those people who do not use a graphical |
| 26 |
launcher to run the simulator, so that they will be able to specify most |
| 27 |
preferences that do not change often there (for example, custom |
| 28 |
scenery/aircraft locations or screen size options), and only those frequently |
| 29 |
modified (like the starting airport) on the command line. |
| 30 |
|
| 31 |
The file must be in plain-text format and ASCII-encoded. It must contain one or |
| 32 |
more command-line options listed in |
| 33 |
.BR fgfs (1); |
| 34 |
each option must be given on a separate line. |
| 35 |
|
| 36 |
If the first non-whitespace character in a line is an octothorpe (\fB#\fR), |
| 37 |
.BR fgfs (1) |
| 38 |
treats the line as a comment and ignores it. Comments should not be added after |
| 39 |
an option, because that might cause the simulator to fail under some conditions |
| 40 |
(notably, when the command-line argument given on the line is of the form |
| 41 |
\fB\-\-prop=\fR). |
| 42 |
|
| 43 |
Variables in paths, like |
| 44 |
.B $HOME |
| 45 |
or \fB$FG_HOME\fR, are not expanded. |
| 46 |
.SH FILES |
| 47 |
.IP "\fI~/.fgfsrc.hostname\fR, \fI~/.fgfsrc\fR" 4 |
| 48 |
Configuration files containing command-line options for |
| 49 |
.BR fgfs (1). |
| 50 |
The simulator parses command-line arguments first, then |
| 51 |
\fI~/.fgfsrc.hostname\fR (where |
| 52 |
.I hostname |
| 53 |
is the hostname of the machine) and then \fI~/.fgfsrc\fR, if they exist, in |
| 54 |
that order. |
| 55 |
.SH EXAMPLE |
| 56 |
The following example configuration file synchronizes the simulator clock with |
| 57 |
the local real-world time, loads real-world weather data, sets the window size |
| 58 |
to 1024x768 and enables random scenery objects and AI traffic: |
| 59 |
|
| 60 |
.nf |
| 61 |
\-\-time\-match\-local |
| 62 |
\-\-enable\-real\-weather\-fetch |
| 63 |
\-\-geometry=1024x768 |
| 64 |
\-\-enable\-random\-objects |
| 65 |
\-\-enable\-ai\-traffic |
| 66 |
.fi |
| 67 |
.SH "SEE ALSO" |
| 68 |
.BR fgfs (1) |