Remove default_type from the dbus service too
This commit is contained in:
parent
7db5479c5c
commit
a0c69066d4
@ -27,19 +27,12 @@ def setup_activity(source, dest_path, bin):
|
|||||||
logging.error('%s miss the required id option' % (path))
|
logging.error('%s miss the required id option' % (path))
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if cp.has_option('Activity', 'default_type'):
|
|
||||||
default_type = cp.get('Activity', 'default_type')
|
|
||||||
else:
|
|
||||||
default_type = None
|
|
||||||
|
|
||||||
if cp.has_option('Activity', 'exec'):
|
if cp.has_option('Activity', 'exec'):
|
||||||
activity_exec = cp.get('Activity', 'exec')
|
activity_exec = cp.get('Activity', 'exec')
|
||||||
elif cp.has_option('Activity', 'python_module'):
|
elif cp.has_option('Activity', 'python_module'):
|
||||||
python_module = cp.get('Activity', 'python_module')
|
python_module = cp.get('Activity', 'python_module')
|
||||||
python_module = cp.get('Activity', 'python_module')
|
python_module = cp.get('Activity', 'python_module')
|
||||||
activity_exec = '%s %s %s' % (bin, activity_id, python_module)
|
activity_exec = '%s %s %s' % (bin, activity_id, python_module)
|
||||||
if default_type:
|
|
||||||
activity_exec += ' ' + default_type
|
|
||||||
else:
|
else:
|
||||||
logging.error('%s must specifiy exec or python_module' % (source))
|
logging.error('%s must specifiy exec or python_module' % (source))
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user