From 13d06d8470b8e33d6871f8fa3c95737fa6cc0560 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 28 Apr 2019 21:00:12 -0400 Subject: [PATCH] Revert "Another attempt to fix the weird quoting stuff with export to x." This reverts commit ee7dc30376680d103ca4df011eb429290c0ba8ff. It didn't work. --- .../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 e5cb04a0..c76a1e3d 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 \"echo -n " + shlex.quote(clipboard) + " | xclip -d :" + str(display) + " -selection c\"", stdout=PIPE, stderr=PIPE, shell=True) + p = Popen('su ' + self.env['general']['currUser'] + ' -c "echo -n \\\"' + shlex.quote(clipboard) +'\\\" | 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')