This is launched via a shortcut on the tray, running in WINE. For Windows version see that section. The code below is a prototype that simply prints some text based on which menu item is selected. The file has to be edited to add the actual FG start commands.
The program is stored as C:\\Program\ Files\\fgtl\\menu.bat
For WINE, the shortcut from the tray is created as follows:
env WINEPREFIX="/home/user7/.wine" wine cmd.exe /c C:\\Program\ Files\\fgtl\\menu.bat
Note that the Flight Gear Desktop link has the following entry in it, you will change the text shown in bold.
env WINEPREFIX="/home/starlight7/.wine" wine C:\\Program\ Files\\FlightGear\\bin\\Win32\\fgrun.exe
:MENUECHO OFFECHO.ECHO ...............................................ECHO PRESS 1, 2 OR 3 to select your task, or 4 to EXIT.ECHO ...............................................ECHO.ECHO 1 - Cessna 172P N 1234 from parking area, AutocoordinationECHO 2 - UFO Object Placement Tool from Parking AreaECHO 3 - Piper PA-28 from parking area, AutocoordinationECHO 4 - EXITECHO.CD \C:cd Program FilesCd FlightGearCd bincd win32SET /P M=bla bla bla blaIF %M%==1 GOTO c172pN1234IF %M%==2 GOTO UFOIF %M%==3 GOTO PA28-161IF %M%==4 GOTO EOF:c172pN1234fgfs.exe --aircraft=c172pN1234 --lon=-122.495823 --lat=37.513869 --fg-root="c:\Program Files\FlightGear\data" --fg-scenery="c:\Program Files\FlightGear\data\Scenery;c:\Program Files\FlightGear\Scenery" --enable-auto-coordination --timeofday=noonpauseGOTO MENU:CALCUFOfgfs.exe --aircraft=UFO --lon=-122.495823 --lat=37.513869 --fg-root="c:\Program Files\FlightGear\data" --fg-scenery="c:\Program Files\FlightGear\data\Scenery;c:\Program Files\FlightGear\Scenery" --enable-auto-coordination --timeofday=noonpauseGOTO MENU:PA28-161fgfs.exe --aircraft=pa28-161 --lon=-122.495823 --lat=37.513869 --fg-root="c:\Program Files\FlightGear\data" --fg-scenery="c:\Program Files\FlightGear\data\Scenery;c:\Program Files\FlightGear\Scenery" --enable-auto-coordination --timeofday=noonpauseGOTO MENUpauseOutput:
Z:\home\user7>:MENU Z:\home\user7>ECHO OFF ...............................................PRESS 1, 2 OR 3 to select your task, or 4 to EXIT................................................1 - Cessna 172P N 1234 from parking area, Autocoordination2 - UFO Object Placement Tool from Parking Area3 - Piper PA-28 from parking area, Autocoordination4 - EXITbla bla bla blaFlight Gear will not launch in WINE without the following paths etc being set correctly as follows: This works
This launches the c172p N1234 version from a Geo coordinates in the parking lot with other options. The paths are mandatory.
CD \C:cd Program FilesCd FlightGearCd bincd win32fgfs.exe --aircraft=c172pN1234 --lon=-122.495823 --lat=37.513869 --fg-root="c:\Program Files\FlightGear\data" --fg-scenery="c:\Program Files\FlightGear\data\Scenery;c:\Program Files\FlightGear\Scenery" --enable-auto-coordination