Moblin4Children: How-To autorun GCompris

353

— START of the PROCEDURE —
Step 1: I write the script /usr/local/bin/start-gcompris. The content of this script is very sample:

#!/bin/sh
/usr/local/bin/gcompris > /tmp/gcompris.log &

The redirection on the file /tmp/gcompris.log is made in order to allow a little-bit debug of the application.

Step 2: You have to add following lines to script /etc/xdg/moblin/xinitrc:

/usr/libexec/moblin-panel-media &
/usr/libexec/moblin-panel-pasteboard &
/usr/libexec/moblin-panel-applications &

# Add this LINE to run GCompris
/usr/local/bin/start-gcompris

mutter –sm-disable

Step 3: reboot your system.
— END of the PROCEDURE —

Maybe a more elegant solution is to install under /etc/xdg/autostart a configuration file named gcompris.desktop. The content of this file should be:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Gcompris Edu
Exec=/usr/local/bin/start-gcompris
Terminal=true
Type=Application
Categories=
GenericName=

See also “Desktop Entry Specification”

TO BE INVESTIGATED: Is it possible do not run the whole Moblin-Panel?