diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-11-02 19:16:36 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-11-02 19:16:36 (GMT) |
commit | 561169809b92e29cfd762c3cd673def881764dcc (patch) | |
tree | 2f408cca1ff452b8d1a89cf40df3e80436c9f59f /sugar/activity | |
parent | 59c777e1096d8b64b477b0647c336acb7b59f8ab (diff) |
Install services in user dir if dbus is recent enough.
Diffstat (limited to 'sugar/activity')
-rw-r--r-- | sugar/activity/bundleregistry.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sugar/activity/bundleregistry.py b/sugar/activity/bundleregistry.py index 582c340..c6d0531 100644 --- a/sugar/activity/bundleregistry.py +++ b/sugar/activity/bundleregistry.py @@ -10,10 +10,13 @@ class _ServiceParser(ConfigParser): class _ServiceManager(object): def __init__(self): - self._path = '/tmp/sugar-services' + if env.get_dbus_version() < '0.95': + self._path = '/tmp/sugar-services' + else: + self._path = os.path.expanduser('~/.local/share/dbus-1/services') if not os.path.isdir(self._path): - os.mkdir(self._path) + os.makedirs(self._path) def add(self, bundle): name = bundle.get_service_name() |