Install services in user dir if dbus is recent enough.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user