diff options
-rw-r--r-- | webactivity.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/webactivity.py b/webactivity.py index fe7b34a..545a992 100644 --- a/webactivity.py +++ b/webactivity.py @@ -55,6 +55,8 @@ from sugar3 import mime from sugar3.graphics.toolbarbox import ToolbarButton +import dbus + PROFILE_VERSION = 2 _profile_version = 0 @@ -247,6 +249,11 @@ class WebActivity(activity.Activity): # http://bugs.sugarlabs.org/ticket/3973 self._cleanup_temp_files() + dbus.SessionBus().add_signal_receiver(self._load_uri, 'Load_URI',IFACE) + + def _load_uri(self, uri): + self._link_clicked_cb(None, uri) + def _cleanup_temp_files(self): """Removes temporary files generated by Download Manager that were cancelled by the user or failed for any reason. |