Add Windows programs from VirtualBox to the Ubuntu programs menu
Solution 1:
- Install Guest Additions
- Enable seamless mode
- Shutdown the VM
-
Create a simple bash script, placing this into it (reference):
#!/bin/bash VBoxManage startvm "VM_NAME" VBoxManage guestcontrol execute "VM_NAME" "exec_command"
Replace
VM_NAME
with the name of the VM andexec_command
with the command you want to run. Save this file somewhere, give it execute permissions, write a
.desktop
file for it, thensudo
move that to the/usr/share/applications
folder.
Note: My preferred way to make a .desktop
file is like this:
sudo apt-get install --no-install-recommends gnome-panel
sudo -H gnome-desktop-item-edit --create-new "/usr/share/applications"
Then fill in the fields with the path to your script as the command, this will place a .desktop
file in the /usr/share/applications
folder (more info)