Back Up Next

Program

Allows you to specify the script with which to start your application.

If you spawn your runner using method 0 (spawn using a shell), the daemon first launches a starting shell which contains fglrun and the environment for the whole session. You need to use the defaultProgram variable to specify the starting script.

For example:

# Script to start the application
defaultProgram="./start"

The start script looks like the following:

#!/bin/sh
FGLGUI=2
export FGLGUI
FGLPROFILE=$FGLDIR/etc/fglprofile.web
export FGLPROFILE
FGLLANG=english
export FGLLANG
unset DBPATH
exec fglrun main

Expected type: string.