restore variables for setting specific path and networking for session and system URI

This commit is contained in:
Lukas Greve
2025-06-15 17:14:31 +02:00
parent 8c96623ad7
commit b98f41512d

View File

@ -54,6 +54,15 @@ else
exit 1
;;
esac
# Conditional variable assignment based on URI
if [[ "$uri" == "qemu:///system" ]]; then
disk_path="/var/lib/libvirt/images/"
network_type="default"
elif [[ "$uri" == "qemu:///session" ]]; then
disk_path="$HOME/.local/share/libvirt/images/"
network_type="user"
fi
fi
# Display the selected option (optional)