1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,9 @@ |
1 |
+[ "$(command -v vboxmanage)" ] || return 0 |
|
2 |
+ |
|
3 |
+# Default is "$HOME/VirtualBox VMs". |
|
4 |
+if \ |
|
5 |
+ ! [ -e "$HOME/.config/VirtualBox/VirtualBox.xml" ] || \ |
|
6 |
+ ! grep -q "$HOME/.virtualbox-vms" "$HOME/.config/VirtualBox/VirtualBox.xml" |
|
7 |
+then |
|
8 |
+ vboxmanage setproperty machinefolder "$HOME/.virtualbox-vms" |
|
9 |
+fi |