From 23badb0940a5892d1745714484220488e602ad27 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 28 Apr 2019 21:17:28 -0400 Subject: [PATCH] Small bug fix with the export here document. --- .../commands/commands/export_clipboard_to_x.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fenrirscreenreader/commands/commands/export_clipboard_to_x.py b/src/fenrirscreenreader/commands/commands/export_clipboard_to_x.py index c35d7d9d..4bab2148 100644 --- a/src/fenrirscreenreader/commands/commands/export_clipboard_to_x.py +++ b/src/fenrirscreenreader/commands/commands/export_clipboard_to_x.py @@ -29,7 +29,7 @@ class command(): return clipboard = self.env['runtime']['memoryManager'].getIndexListElement('clipboardHistory') for display in range(10): - p = Popen('su ' + self.env['general']['currUser'] + ' -c "cat << \\\"EOF\\\"\n' + clipboard + '\nEOF | xclip -d :' + str(display) + ' -selection c"', stdout=PIPE, stderr=PIPE, shell=True) + p = Popen('su ' + self.env['general']['currUser'] + ' -c "cat << \\\"EOF\\\"\n' + clipboard + '\nEOF\n | xclip -d :' + str(display) + ' -selection c"', stdout=PIPE, stderr=PIPE, shell=True) stdout, stderr = p.communicate() self.env['runtime']['outputManager'].interruptOutput() #screenEncoding = self.env['runtime']['settingsManager'].getSetting('screen', 'encoding')