mirror of
https://github.com/mbusb/multibootusb
synced 2024-11-18 15:25:46 +00:00
Merge pull request #166 from Majora320/master
Fixed an issue where using a path with spaces would cause a qemu error
This commit is contained in:
commit
2a7e1abfc6
@ -48,7 +48,7 @@ class Qemu(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
else:
|
||||
ram = ""
|
||||
|
||||
cmd = qemu + ram + ' -boot d' + ' -cdrom ' + str(qemu_iso_link)
|
||||
cmd = qemu + ram + ' -boot d' + ' -cdrom "' + str(qemu_iso_link) + '"'
|
||||
try:
|
||||
log("Executing ==> " + cmd)
|
||||
subprocess.Popen(cmd, shell=True)
|
||||
@ -98,7 +98,7 @@ class Qemu(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
os.chdir(parent_dir)
|
||||
|
||||
elif platform.system() == "Linux":
|
||||
cmd = qemu + ' -hda ' + qemu_usb_disk + ram + ' -vga std'
|
||||
cmd = qemu + ' -hda "' + qemu_usb_disk + '"' + ram + ' -vga std'
|
||||
try:
|
||||
log('Executing ==> ' + cmd)
|
||||
subprocess.Popen(cmd, shell=True)
|
||||
|
Loading…
Reference in New Issue
Block a user