Pass activity name to the webactivity

This commit is contained in:
surajgillespie 2013-07-05 02:04:31 +05:30 committed by Daniel Narvaez
parent 2643a0b25c
commit 8c736d3870

View File

@ -26,7 +26,7 @@ from gi.repository import GdkX11
assert GdkX11
from gi.repository import SugarExt
from sugar3.activity import activity
class WebActivity(Gtk.Window):
def __init__(self, handle):
@ -75,7 +75,8 @@ class WebActivity(Gtk.Window):
"apiSocketPort": port,
"activityId": self._activity_id,
"bundleId": self._bundle_id,
"objectId": self._object_id})
"objectId": self._object_id,
"activityName": activity.get_bundle_name()})
script = """
var environment = %s;