aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2015-06-10 20:04:06 +0200
committerMarius Halden <marius.h@lden.org>2015-06-10 20:04:06 +0200
commite56ceec9dbebc18f4a2af5dd056107fca077aca6 (patch)
treef4ac13183f2c2ba3ba2fb2fcb9bc218837d125ff
parent282dbde283a2b7d377be9ffc22bf4ef9ea45808f (diff)
downloadpush-client-e56ceec9dbebc18f4a2af5dd056107fca077aca6.tar.gz
push-client-e56ceec9dbebc18f4a2af5dd056107fca077aca6.tar.bz2
push-client-e56ceec9dbebc18f4a2af5dd056107fca077aca6.tar.xz
first blush
-rwxr-xr-xpush.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/push.py b/push.py
index 96a2829..0639f8a 100755
--- a/push.py
+++ b/push.py
@@ -142,14 +142,14 @@ class MessageHandler:
def show_message_dialog(self, message):
msg = message.message
title = '[%s] %s' % (message.app, message.title)
-
+
if message.url is not None:
if message.url_title is not None:
msg += '\n\n[%s] <URL: %s >' % (message.url_title, message.url)
else:
msg += '\n\n<URL: %s >' % message.url
- if subprocess.call('kdialog --title "%s" --passivepopup "%s" 10' % (title, msg), shell=True) != 0:
+ if subprocess.call('kdialog --title "%s" --passivepopup "%s" 10' % (title.strip(), msg.strip()), shell=True) != 0:
print('Failed to show dialog.', file=sys.stderr)
def ack_message(self, msg):