3 Commits

Author SHA1 Message Date
jpattWPC
b382d69126 Fix #51 2023-03-10 09:22:10 -06:00
jpattWPC
715dfef72d Add python3-tk to apt install 2023-03-08 09:14:43 -06:00
jpattWPC
fbe00ec782 Bump release version 2023-02-15 08:54:29 -06:00
3 changed files with 10 additions and 6 deletions

View File

@@ -24,7 +24,7 @@ you will need to download the latest 3.10 python release, and run the following
Run the following commands on a Debian/Ubuntu Linux system to install the appropriate prerequisites Run the following commands on a Debian/Ubuntu Linux system to install the appropriate prerequisites
apt install python3-pip virt-viewer git apt install python3-pip python3-tk virt-viewer git
git clone https://github.com/joshpatten/PVE-VDIClient.git git clone https://github.com/joshpatten/PVE-VDIClient.git
cd ./PVE-VDIClient/ cd ./PVE-VDIClient/
chmod +x requirements.sh chmod +x requirements.sh

2
dist/vdiclient.json vendored
View File

@@ -1,6 +1,6 @@
{ {
"upgrade_guid" : "46cbad92-353e-4b28-9bee-83950991dad8", "upgrade_guid" : "46cbad92-353e-4b28-9bee-83950991dad8",
"version" : "1.1.01", "version" : "1.1.03",
"product_name" : "VDI Client", "product_name" : "VDI Client",
"manufacturer" : "Josh Patten", "manufacturer" : "Josh Patten",
"name" : "VDI Client", "name" : "VDI Client",

View File

@@ -271,10 +271,14 @@ def vmaction(vmnode, vmid, vmtype):
if startpop: if startpop:
startpop.close() startpop.close()
return status return status
if vmtype == 'qemu': try:
spiceconfig = G.proxmox.nodes(vmnode).qemu(str(vmid)).spiceproxy.post() if vmtype == 'qemu':
else: # Not sure this is even a thing, but here it is... spiceconfig = G.proxmox.nodes(vmnode).qemu(str(vmid)).spiceproxy.post()
spiceconfig = G.proxmox.nodes(vmnode).lxc(str(vmid)).spiceproxy.post() else: # Not sure this is even a thing, but here it is...
spiceconfig = G.proxmox.nodes(vmnode).lxc(str(vmid)).spiceproxy.post()
except proxmoxer.core.ResourceException as e:
win_popup_button(f"Unable to connect to VM {vmid}:\n{e!r}\nIs SPICE display configured for your VM?", 'OK')
return False
confignode = ConfigParser() confignode = ConfigParser()
confignode['virt-viewer'] = {} confignode['virt-viewer'] = {}
for key, value in spiceconfig.items(): for key, value in spiceconfig.items():