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 09:18:28 (GMT)
committer Sayamindu Dasgupta <sayamindu@gmail.com>2009-02-20 09:18:28 (GMT)
commit026aa40cad056f691faf2c77b3ffafea6a9a7720 (patch)
treed653e6b110f6ff4c96385e9b5059533e86a9d21c
parentff90e249f4593133c7483714904e938daeda4a28 (diff)
Support loading plugins from the plugins directorysucrose-0.82
-rw-r--r--webactivity.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/webactivity.py b/webactivity.py
index e17d3b2..aa8c9a9 100644
--- a/webactivity.py
+++ b/webactivity.py
@@ -44,6 +44,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())