Get rid of our custom dbus config, simplify stuff

This commit is contained in:
Marco Pesenti Gritti
2006-12-01 21:24:24 +01:00
parent 0e2d9b496a
commit cf156fac07
7 changed files with 10 additions and 83 deletions
+1 -3
View File
@@ -10,9 +10,7 @@ class _ServiceParser(ConfigParser):
class _ServiceManager(object):
def __init__(self):
self._path = os.path.expanduser('~/.local/share/dbus-1/services')
if not os.path.isdir(self._path):
os.makedirs(self._path)
self._path = env.get_user_service_dir()
def add(self, bundle):
name = bundle.get_service_name()
+6 -3
View File
@@ -51,9 +51,6 @@ def get_activity_info_dir():
def get_services_dir():
return sugar_services_dir
def get_dbus_config():
return sugar_dbus_config
def get_shell_bin_dir():
return sugar_shell_bin_dir
@@ -63,3 +60,9 @@ def get_data_dirs():
return os.environ['XDG_DATA_DIRS'].split(':')
else:
return [ '/usr/local/share/', '/usr/share/' ]
def get_user_service_dir():
service_dir = os.path.expanduser('~/.local/share/dbus-1/services')
if not os.path.isdir(service_dir):
os.makedirs(service_dir)
return service_dir