Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/webactivity.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@gmail.com>2011-06-03 19:37:46 (GMT)
committer Daniel Drake <dsd@laptop.org>2011-10-04 11:56:28 (GMT)
commitef8da454e7679b3ff800165ac90135e153ce5c7f (patch)
tree65151114c95fe2e94f1fe16ea89c859553976837 /webactivity.py
parentc80d03e4d6d9a7badb4676ed7dfc779f5621aa49 (diff)
Add pluggin to inline display of PDF files
The mozplugger binaries were compiled applying the patches from Sayamindu (updated) in the last packaged version of mozplugger. The sugar-pdf-viewer utility was updated to follow evince changes.
Diffstat (limited to 'webactivity.py')
-rw-r--r--webactivity.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/webactivity.py b/webactivity.py
index eefb169..1e9280e 100644
--- a/webactivity.py
+++ b/webactivity.py
@@ -68,6 +68,12 @@ if not NEW_TOOLBARS:
_TOOLBAR_EDIT = 1
_TOOLBAR_BROWSE = 2
+# Setup some env variables for the embedded PDF viewer
+os.environ['MOZ_PLUGIN_PATH'] = os.path.join(os.environ['SUGAR_BUNDLE_PATH'],
+ 'plugins')
+os.environ['OPERA_DIR'] = os.path.join(os.environ['SUGAR_BUNDLE_PATH'],
+ 'plugins', 'conf')
+
if os.path.exists(_version_file):
f = open(_version_file)
_profile_version = int(f.read())