From 9728594a984296a1c9ea9adf12728730b93d12ac Mon Sep 17 00:00:00 2001 From: Sayamindu Dasgupta Date: Fri, 20 Feb 2009 17:14:16 +0000 Subject: Add support for plugins in the /plugins directory --- (limited to 'webactivity.py') diff --git a/webactivity.py b/webactivity.py index 4617a18..16dee47 100644 --- a/webactivity.py +++ b/webactivity.py @@ -47,6 +47,14 @@ _profile_version = 0 _profile_path = os.path.join(activity.get_activity_root(), 'data/gecko') _version_file = os.path.join(_profile_path, 'version') +_plugin_path = os.path.join(os.environ['SUGAR_BUNDLE_PATH'], 'plugins') +_mozplugger_conf_path = os.path.join(os.environ['SUGAR_BUNDLE_PATH'], 'plugins', \ + 'conf') + +# Setup some env variables for the embedded PDF viewer +os.environ['MOZ_PLUGIN_PATH'] = _plugin_path +os.environ['OPERA_DIR'] = _mozplugger_conf_path #XXX + if os.path.exists(_version_file): f = open(_version_file) _profile_version = int(f.read()) -- cgit v0.9.1