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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user