Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSayamindu Dasgupta <sayamindu@gmail.com>2009-02-20 17:14:16 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-02-20 17:14:16 (GMT)
commit9728594a984296a1c9ea9adf12728730b93d12ac (patch)
treed70a42270950caf024c49d5750818239f7de5633
parent006f3908ee4bcd1f1b3cde78b89213adabd0056e (diff)
Add support for plugins in the /plugins directory
-rw-r--r--webactivity.py8
1 files changed, 8 insertions, 0 deletions
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())