Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'webactivity.py')
-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())