diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2011-06-03 19:37:46 (GMT) |
---|---|---|
committer | Daniel Drake <dsd@laptop.org> | 2011-10-04 11:56:28 (GMT) |
commit | ef8da454e7679b3ff800165ac90135e153ce5c7f (patch) | |
tree | 65151114c95fe2e94f1fe16ea89c859553976837 /webactivity.py | |
parent | c80d03e4d6d9a7badb4676ed7dfc779f5621aa49 (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.py | 6 |
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()) |