Fix unicode handling in command to run

Thanks @igilik for the patch!

Fixes QubesOS/qubes-issues#2040
This commit is contained in:
Marek Marczykowski-Górecki 2016-10-03 00:11:59 +02:00
parent 98cada9f07
commit f34328836e
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1461,7 +1461,7 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow):
return
thread_monitor = ThreadMonitor()
thread = threading.Thread(target=self.do_run_command_in_vm, args=(
vm, str(command_to_run), thread_monitor))
vm, unicode(command_to_run), thread_monitor))
thread.daemon = True
thread.start()