From 8a3a3108c9d589ce9296db63a96444770611dd7e Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 12 Sep 2017 01:23:46 +0200 Subject: [PATCH] change message, remove soundIcon --- src/fenrir/commands/commands/export_clipboard_to_x.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/fenrir/commands/commands/export_clipboard_to_x.py b/src/fenrir/commands/commands/export_clipboard_to_x.py index 29318ada..8e8a1ca4 100644 --- a/src/fenrir/commands/commands/export_clipboard_to_x.py +++ b/src/fenrir/commands/commands/export_clipboard_to_x.py @@ -46,17 +46,14 @@ class command(): stderr = stderr.decode('utf-8') stdout = stdout.decode('utf-8') if (stderr == ''): - break - else: - print(stderr) + break #stderr = stderr.decode(screenEncoding, "replace").encode('utf-8').decode('utf-8') #stdout = stdout.decode(screenEncoding, "replace").encode('utf-8').decode('utf-8') if stderr != '': self.env['runtime']['outputManager'].presentText(stderr , soundIcon='', interrupt=False) else: - self.env['runtime']['outputManager'].presentText('export clipboard', soundIcon='PasteClipboardOnScreen', interrupt=True) + self.env['runtime']['outputManager'].presentText('pasted to the X session or clipboard.', interrupt=True) except Exception as e: - print(e) self.env['runtime']['outputManager'].presentText(e , soundIcon='', interrupt=False) def setCallback(self, callback):