Add Windows programs from VirtualBox to the Ubuntu programs menu

Solution 1:

  1. Install Guest Additions
  2. Enable seamless mode
  3. Shutdown the VM
  4. 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 and exec_command with the command you want to run.

  5. Save this file somewhere, give it execute permissions, write a .desktop file for it, then sudo 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)