Last active
January 1, 2019 08:57
-
-
Save LinuxPhreak/83333ab947f547770b4e997a6f55a3b9 to your computer and use it in GitHub Desktop.
Shell script to fix the VirtualBox 6.0.0 Create Desktop Shortcut for Linux Host problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/usr/bin/env sh | |
# This is a shell script to fix the problem VirtualBox 6.0.0 has when creating Desktop Shortcuts on Linux systems. | |
# This shell script has been tested on Fedora 28 LXDE | |
# Bug report https://www.virtualbox.org/ticket/18259 LinuxPhreak2600 aka LinuxPhreak aka Ben P. Dorsi-Todaro | |
# This shell script is provided by Ben P. Dorsi-Todaro | |
# To get the most updated version of this GIST go to the repository https://github.com/linuxphreak/vbox-scripts | |
# or visit the site https://linuxphreak.github.io/vbox-scripts/ | |
echo -e "Which Virtual Machine do you want to make a Desktop Shortcut for?" | |
read vmname | |
echo -e "[Desktop Entry]" >> $HOME/Desktop/$vmname.Desktop | |
echo -e "Encoding=UTF-8" >> $HOME/Desktop/$vmname.Desktop | |
echo -e "Version=1.0" >> $HOME/Desktop/$vmname.Desktop | |
echo -e "Name=$vmname" >> $HOME/Desktop/$vmname.Desktop | |
echo -e "Comment=Starts the VirtualBox machine $vmname" >> $HOME/Desktop/$vmname.Desktop | |
echo -e "Type=Application" >> $HOME/Desktop/$vmname.Desktop | |
echo -e "Exec=VBoxManage startvm '$vmname' %u" >> $HOME/Desktop/$vmname.Desktop | |
echo -e "Icon=virtualbox-vbox.png" >> $HOME/Desktop/$vmname.Desktop | |
chmod +x "$HOME/Desktop/$vmname.Desktop" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment