Skip to content

Instantly share code, notes, and snippets.

@konfou
Created September 3, 2015 16:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konfou/18fa68ba961ecdc63536 to your computer and use it in GitHub Desktop.
Save konfou/18fa68ba961ecdc63536 to your computer and use it in GitHub Desktop.
vbox.desktop
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=$vb_name
Comment=Starts the VirtualBox machine $vb_name
Type=Application
Exec=/usr/lib/virtualbox/VirtualBox --comment $vb_name --startvm $vb_uuid
Icon=virtualbox-vbox.png
#!/bin/sh
/usr/lib/virtualbox/VirtualBox --startvm $(VBoxManage showvminfo $vbox_path | grep UUID -m 1 | sed 's/UUID\://')
#!/bin/sh
vb_uuid=$(VBoxManage showvminfo $vbox_path | grep UUID -m 1 | sed 's/UUID\://')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment