Disable notification for simple type

This commit is contained in:
Denis Zheleztsov 2015-07-23 11:35:02 +03:00
parent 3e47ba7e85
commit a4c8aac3c5

View File

@ -56,6 +56,7 @@ def type_exec(action):
return action['command']
elif action['type'] == 'simple':
get_cmd(action['command'])
return None
else:
return 'Unknown type!'
@ -69,5 +70,6 @@ def get_cmd(cmd):
# Show notify message
def notify(msg):
get_cmd( "notify-send 'azot event' \"{0}\"".format(msg) )
if msg is not None:
get_cmd( "notify-send 'azot event' \"{0}\"".format(msg) )