diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2012-08-12 17:05:05 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2012-08-12 17:05:05 (GMT) |
commit | dc8f44d46ffed91cfb73b14b9cbc6fb9f192065f (patch) | |
tree | b8ee3d36bd9a64b9873f20ce8eee420ae495499f /plugin/__init__.py | |
parent | 3f9d5bb5ab150ed1d9c7d4a2f8ddf55aef07e645 (diff) |
Reflect on shell plugins API changes
Diffstat (limited to 'plugin/__init__.py')
-rw-r--r-- | plugin/__init__.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugin/__init__.py b/plugin/__init__.py index 83d1a69..4af8b09 100644 --- a/plugin/__init__.py +++ b/plugin/__init__.py @@ -16,6 +16,7 @@ import json import logging import subprocess +from os.path import abspath, dirname from gettext import gettext as _ import gtk @@ -71,7 +72,7 @@ def init(): from .browser import Palette Activity.get_bundle_path = _get_bundle_path - #palettes.predefined[SN_BROWSER_NAME] = Palette + palettes.predefined[SN_BROWSER_NAME] = Palette def start(): @@ -100,6 +101,11 @@ def start(): shell.connect('activity-added', activity_added_cb) +def binding(): + srcroot = dirname(abspath(__file__)) + return ['export XDG_DATA_DIRS=%s:$XDG_DATA_DIRS' % srcroot] + + def control_panel_section(): section = gtk.VBox() |