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
:MENU
ECHO OFF
ECHO.
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, Autocoordination
ECHO 2 - UFO Object Placement Tool from Parking Area
ECHO 3 - Piper PA-28 from parking area, Autocoordination
ECHO 4 - EXIT
ECHO.
CD \
C:
cd Program Files
Cd FlightGear
Cd bin
cd win32
SET /P M=bla bla bla bla
IF %M%==1 GOTO c172pN1234
IF %M%==2 GOTO UFO
IF %M%==3 GOTO PA28-161
IF %M%==4 GOTO EOF
:c172pN1234
fgfs.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=noon
pause
GOTO MENU
:CALCUFO
fgfs.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=noon
pause
GOTO MENU
:PA28-161
fgfs.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=noon
pause
GOTO MENU
pause
Output:
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, Autocoordination
2 - UFO Object Placement Tool from Parking Area
3 - Piper PA-28 from parking area, Autocoordination
4 - EXIT
bla bla bla bla
Flight 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 Files
Cd FlightGear
Cd bin
cd win32
fgfs.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