Do not list qemu binary with -spice in the name

It's create confusion and you can enable spice with the -spice
options.

Fix https://github.com/GNS3/gns3-gui/issues/981
This commit is contained in:
Julien Duponchelle committed 2016-02-03 16:40:39 +01:00
1 parent 71c3bda0a5
commit 537122daba
2 files changed
+4 -1

No files matched your search

+2
View File
@@ -117,6 +117,8 @@ class Qemu(BaseManager):
for path in Qemu.paths_list():
try:
for f in os.listdir(path):
if f.endswith("-spice"):
continue
if (f.startswith("qemu-system") or f.startswith("qemu-kvm") or f == "qemu" or f == "qemu.exe") and \
os.access(os.path.join(path, f), os.X_OK) and \
os.path.isfile(os.path.join(path, f)):