User:Follower: Difference between revisions
Jump to navigation
Jump to search
(FIELD_OTHER) |
m (Reverted edits by 194.167.56.78 (Talk) to last version by Follower) |
||
Line 1: | Line 1: | ||
== (Obsolete) Notes on making a OLPC Sugar activity == |
|||
FIELD_MESSAGE_rolgetvimon |
|||
cp -r /usr/share/activities/GroupChat.activity /usr/share/activities/HelloWorld.activity |
|||
cd /usr/share/activities/HelloWorld.activity |
|||
vi activity/activity.info |
|||
##### activity.info ###### |
|||
[Activity] |
|||
name = HelloWorld |
|||
activity_version = 1 |
|||
host_version = 1 |
|||
icon = activity-chat |
|||
service_name = com.rancidbacon.HelloWorld |
|||
exec = sugar-activity-factory chatactivity.ChatActivity |
|||
show_launcher = 1 |
|||
########################## |
|||
killall X # <-- This forces frame to rescan and find activity. (Or Ctrl+Alt+Backspace) |
|||
mv activity/activity-chat.svg activity/activity-hello.svg |
|||
mv chatactivity.py helloactivity.py |
|||
# change: icon = activity-hello |
|||
# change: exec = sugar-activity-factory helloactivity.HelloActivity |
|||
vi helloactivity.py |
Latest revision as of 06:53, 17 December 2008
(Obsolete) Notes on making a OLPC Sugar activity
cp -r /usr/share/activities/GroupChat.activity /usr/share/activities/HelloWorld.activity
cd /usr/share/activities/HelloWorld.activity
vi activity/activity.info
##### activity.info ###### [Activity] name = HelloWorld activity_version = 1 host_version = 1 icon = activity-chat service_name = com.rancidbacon.HelloWorld exec = sugar-activity-factory chatactivity.ChatActivity show_launcher = 1 ########################## killall X # <-- This forces frame to rescan and find activity. (Or Ctrl+Alt+Backspace)
mv activity/activity-chat.svg activity/activity-hello.svg
mv chatactivity.py helloactivity.py
# change: icon = activity-hello
# change: exec = sugar-activity-factory helloactivity.HelloActivity
vi helloactivity.py