Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

$FG HOME

From FlightGear wiki
Revision as of 09:32, 25 August 2014 by Gijs (Talk | contribs) (Common paths: update $FG_HOME on Windows for FG 3.0)

Jump to: navigation, search

$FG_HOME is a placeholder variable representing the path to where user-specific FlightGear data is stored (not application data). Unlike $FG_ROOT, $FG_HOME is NOT an environment variable that needs to be specifically configured for FlightGear to work. $FG_HOME is the only place were FlightGear data is written to, $FG_ROOT is generally read-only.

$FG_HOME is only used to refer to the OS-specific location for some settings/folders. The actual location of $FG_HOME will be determined by the fgfs binary during startup, it is a name for a directory that varies with the various operating systems supported by FG (Windows, OSX and Linux) and it stores information between sessions, such as: configuration/preferences, properties marked with the "user-archive" attribute and aircraft-specific settings (using the data helper class in aircraft.nas). $FG_HOME is also the location for the SQLite-based NavDB cache.

($FG_HOME and the /sim/fg-home property should be considered read-only, because they cannot be affected during startup or at runtime)

Note that the Fgfsrc config file will not actually be saved in $FG_HOME, but just in $HOME

Common paths

  • Linux: ~/.fgfs/
  • Mac OS X: ~/Library/Application Support/FlightGear (to learn more about viewing hidden folders, see [1])
As all future FlightGear versions will take their preferences from here, it is a good idea to have their access available easily.
Desktop/Finder/Go/Go to Folder is where you need to start.
When given the option, input: ~/Library/Application Support/FlightGear
It is probably a good idea to have '~/Library/Application Support/FlightGear' saved on a Stickies note just in case you forget it.
If you want/need to refer to any of these files frequently, you could make an alias of a file, or the whole folder, and place it somewhere easier to access. TerraSync data is also stored inside the user's home folder, in the 'only' location we are permitted to write too, $HOME/Library/Application Support/FlightGear. To be technical, that's the value of '$FG_HOME', which is where we store all temporary / user-local data such as saved prefs, TerraSync files and aircraft-specific config state. The OSX launcher doesn't actually set this path (any more), this location is the default used by FlightGear itself. You can of course override these paths and set FG_HOME or the TerraSync path manually, from the command line or a config file, but the defaults should 'do what you want'.
  • Windows:
  • FlightGear 3.0 and later: %HOME%/Documents/FlightGear
 %HOME% is usually C:/Users/{YourUserName}
  • Before FlightGear 3.0: %APPDATA%\flightgear.org\
 %APPDATA% is another environment variable that depends on your Windows version. On XP and older, it can be found under C:\Documents and Settings\{username}\Application Data. On Vista and later it can be found under C:\Users\{username}\AppData\Roaming. The folder is hidden by default; see these instructions to unhide the folder.

You can determine the location of your $FG_HOME by using the property tree browser and checking the value of /sim/fg-home, the /sim/ branch is also the place where you can find other folders, such as fg-root, fg-scenery and the current working directory (fg-current).