Make shell responsible for activity ID generation

Enables tracking of activity launch throughout the whole process, so that
the shell can be aware of the activity ID from the moment the activity
is started by the shell, until the activity becomes active.  Previously,
the activity itself generated its own ID and told the shell what it was.
This commit is contained in:
Dan Williams
2007-01-06 16:29:13 -05:00
parent f50d9f5f9a
commit b27257fadb
4 changed files with 56 additions and 13 deletions
+2 -1
View File
@@ -21,6 +21,7 @@ import os
from sugar.activity import ActivityFactory
from sugar import env
from sugar import util
ppath = env.get_profile_path()
bus_file = os.path.join(ppath, "session_bus_address")
@@ -30,4 +31,4 @@ f.close()
os.environ['DBUS_SESSION_BUS_ADDRESS'] = bus_name
activity = ActivityFactory.create(sys.argv[1])
activity.start()
activity.start(util.unique_id())