detect if in virtual env and prompt to install open-vm-tools (#41)

* test option for virtualization

* add placeholder text and title

* make use of hypervisor to identify if in vm

* update recipe.json based on @kra-mo suggestion

Co-authored-by: kramo <93832451+kra-mo@users.noreply.github.com>

* Update recipe.json

Co-authored-by: kramo <93832451+kra-mo@users.noreply.github.com>

Co-authored-by: kramo <93832451+kra-mo@users.noreply.github.com>
main
Muqtadir 2 years ago committed by GitHub
parent 311fd7e5b7
commit f7e55361e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -118,6 +118,31 @@
}
]
},
"vm": {
"template": "yes-no",
"display-conditions": [
"grep 'hypervisor' /proc/cpuinfo"
],
"icon": "application-x-appliance-symbolic",
"title": "Open VM Tools",
"description": "Choose whether to install Open VM Tools for the virtual machine.",
"buttons": {
"yes": "Yes, install",
"no": "Skip",
"info": {
"type": "text",
"title": "About Open VM Tools",
"text": "Open VM Tools can be used in GNOME Boxes."
}
},
"final": [
{
"if": "vm",
"type": "command",
"commands": ["sudo apx --sys install -y open-vm-tools"]
}
]
},
"extra": {
"template": "preferences",
"icon": "vanilla-puzzle-piece-symbolic",

Loading…
Cancel
Save