1
0
forked from drath/libratbag

tools: rabtagctl.devel: only output the dbus name when using keepalive

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@gmail.com>
This commit is contained in:
Benjamin Tissoires
2017-08-22 14:30:49 +02:00
committed by Peter Hutterer
parent e27b1eb99f
commit aa251448d3

View File

@@ -43,7 +43,6 @@ def main(argv):
ratbagd = toolbox.open_ratbagd()
parser = toolbox.get_parser()
parser.want_keepalive = True
print('export RATBAGCTL_DEVEL="{}"\n'.format(os.environ['RATBAGCTL_DEVEL']))
cmd = None
@@ -62,6 +61,7 @@ def main(argv):
finally:
try:
if cmd.keepalive:
print('\nexport RATBAGCTL_DEVEL="{}"\n'.format(os.environ['RATBAGCTL_DEVEL']))
signal.pause()
except KeyboardInterrupt:
pass