diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-02-20 17:14:16 (GMT) |
---|---|---|
committer | Sayamindu Dasgupta <sayamindu@gmail.com> | 2009-02-20 17:14:16 (GMT) |
commit | 9728594a984296a1c9ea9adf12728730b93d12ac (patch) | |
tree | d70a42270950caf024c49d5750818239f7de5633 /webactivity.py | |
parent | 006f3908ee4bcd1f1b3cde78b89213adabd0056e (diff) |
Add support for plugins in the /plugins directory
Diffstat (limited to 'webactivity.py')
-rw-r--r-- | webactivity.py | 8 |
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()) |