Activity Team/Activity Development Fedora 17

Develop an Activity under Fedora 17

Developing an activity under Fedora has never been so easy. Here are the most basic steps to get you started.

Install Fedora 17

Follow the instructions at the Fedora page and install Fedora or run it in virtualization.

Install Sugar

Now install Sugar:

yum groupinstall sugar-desktop

For running Sugar under GNOME you can use the 'sugar-emulator' install the package:

yum install sugar-emulator

Start the sugar emulator

You can start the Sugar emulator from the terminal, like:

sugar-emulator

Or you can run it from your launcher like any other application:

Modify an Activity

The Activities you installed earlier with the 'groupinstall' command are installed under '/usr/share/sugar/activities/'. For developing it is easier to have them available in a user accessible part of the system. Sugar does look in the $HOME/Activities folder for Activities. The folder has to be named to end with '.activity'.

Start a terminal and create the folder in your $HOME directory and change into it:

cd
mkdir Activities
cd Activities/

Clone the HelloWorld activity (in the folder helloworld.activity):

git clone git://git.sugarlabs.org/hello-world/mainline.git helloworld.activity