Fr/$FG ROOT: Difference between revisions

Jump to navigation Jump to search
1,511 bytes added ,  26 December 2022
m
Actualisation
No edit summary
m (Actualisation)
Line 1: Line 1:
'''$FG_ROOT''' fait référence au répertoire principal de [[Fr/FlightGear|FlightGear]], contenant le fameux "paquet de base"(appelé aussi fgdata) ([[Fr/Avions|aircraft]], [[Fr/Scenery|scenery]], [[Menubar|GUI]] ainsi que d'autres fichiers..). lorsque vous démarrez Flightgear par une [[Command_line|ligne de commande]], vous pouvez sélectionner le dossier de base FG via la variable <tt>--fg-root=lien/vers/root</tt> (exemple: /Documents/fgdata...). Dans [[Fr/FlightGear_Launch_Control|FGRun]], ceci peut etre sélectionné depuis la première page des liens, juste avant la page de sélection d'avions.
The [[Environment variables|environment variable]] <code>'''$FG_ROOT'''</code> is a '''setting''' referring to the path of the main data directory of [[FlightGear]], which contains the so called ''base package'', also known as [[FGData]]. This setting can also be set from the [[FlightGear Qt launcher]], or the command-line. The base package consists of the default [[aircraft]] and [[scenery]], [[Menubar|GUI]] files, sounds, 3D models etc.


Sur Mac OS X, le dossier [[$FG_ROOT]] n'est pas installé automatiquement. Jetez un oeil sur [[Fr/Nouveau_sur_flightgear#Installer_sur_Mac_OS_X|Installer FlightGear sur Mac OS X]] et aussi sur [[Fr/FlightGear_Git_sur_Mac_OS_X|installer  la derniere version de developpement GIT Flightgear sur Mac OS X]] pour une installation manuelle.
To set <code>'''$FG_ROOT'''</code> from the Qt launcher, click "<code>...</code>" at the top left of the launcher to get the drop down menu and click on <code>Select data files location.</code>


===Liens Généraux===
When running FlightGear from a [[command line]], you can set <code>$FG_ROOT</code> via <code>--fg-root=path/to/root</code>. In [[FGRun]], it is set on the paths page, previous to the aircraft selection page.
* '''Mac OS X:''' <tt>Applications/FlightGear.app/Contents/Resources/data/</tt>
 
* '''Ubuntu:''' <tt>/usr/share/games/flightgear/</tt>
As of FlightGear 2.4, it is advised to install additional scenery and aircraft in <code>[[$FG_SCENERY]]</code> and <code>[[$FG_AIRCRAFT]]</code> directories outside <code>$FG_ROOT</code>. This allow for maintaining the additional stuff when installing a new version of FlightGear.
* '''Windows:''' <tt>%ProgramFiles%/FlightGear/data/</tt>
 
== Common paths ==
* '''Mac OS X:''' <code>Applications/FlightGear.app/Contents/Resources/data/</code> (right-click on FlightGear.app and select "Show Package Contents" to see the Contents folder)
: <code>$FG_ROOT</code> is not installed automatically. See [[New to FlightGear#Installing on Mac OS X|New to FlightGear]] for an installation manual.
* '''Ubuntu:''' <code>/usr/share/games/flightgear/</code>
* '''Windows:''' <code>Program Files\FlightGear 2020.3\data\</code> (default, '''see note!''')
 
{{note|Newer '''Windows''' versions are very, very protective about the '''<code>Program Files</code> folder'''.
 
Installing FlightGear into this folder makes it prone to any problems relating to file read/write permissions. Hence, installing FlightGear into <code>Program Files</code> on Windows Vista and later is not recommended. ''(I have yet to see where installing it outside of the default location actually helps - '''jaxsin''')''}}
 
== $FG_DATA ==
You will sometimes see <code>$FG_ROOT</code> erroneously being mentioned as <code>'''$FG_DATA'''</code>.  While there is no <code>$FG_DATA</code> environment variable, the SourceForge repository containing the base package is named <code>[[FGData]]</code> and was earlier named <code>fgdata</code> in Gitorious.<ref>https://www.mail-archive.com/search?q=fgdata&l=flightgear-devel%40lists.sourceforge.net</ref><ref>https://www.mail-archive.com/search?l=flightgear-devel%40lists.sourceforge.net&q=fg_data&x=0&y=0</ref>
 
== References ==
<references/>


[[Category:Special directories|ROOT]]
[[Category:Special directories|ROOT]]
[[Category:Environment variables]]


[[de:$FG ROOT]]
[[de:$FG ROOT]]
[[en:$FG ROOT]]
[[en:$FG ROOT]]
[[es:$FG_ROOT]]
[[nl:$FG_ROOT]]
[[nl:$FG_ROOT]]
[[es:$FG_ROOT]]
478

edits

Navigation menu