From 9cc18228a0b839dc2a216eb4b42c74dcb214c012 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 11 Mar 2014 02:10:11 +0100 Subject: [PATCH] Tell the KDE that clipboard notify uses HTML (#797) Apparently KDE parses HTML tags in tray notifications only when some of them appears on the first line of the message. So add some there. This doesn't affect Xfce, which always parses HTML tags. --- qubesmanager/main.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 6ee22bb..63799ef 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -98,13 +98,15 @@ class QubesManagerFileWatcher(ProcessEvent): src_info_file = open (qubes_clipboard_info_file, 'r') src_vmname = src_info_file.readline().strip('\n') if src_vmname == "": - trayIcon.showMessage("Qubes Clipboard has been copied to the VM and wiped.\n"\ + trayIcon.showMessage( + "Qubes Clipboard has been copied to the VM and wiped.\n" "Trigger a paste operation (e.g. Ctrl-v) to insert it into an application.", - msecs=3000) + msecs=3000) else: - trayIcon.showMessage("Qubes Clipboard fetched from VM: '{0}'\n"\ - "Press Ctrl-Shift-v to copy this clipboard onto dest VM's clipboard.".format(src_vmname), - msecs=3000) + trayIcon.showMessage( + "Qubes Clipboard fetched from VM: '{0}'\n" + "Press Ctrl-Shift-v to copy this clipboard onto dest VM's clipboard.".format(src_vmname), + msecs=3000) src_info_file.close() def process_IN_CREATE(self, event): if event.name == os.path.basename(qubes_clipboard_info_file):