Comment #2 on issue 159833 by
will...@crandell.ws: shortcut to app created
according to the community docs on unity the structure is not correct
separating the lines does not fix the problem. Though removing the first
part does, which can be done by dragging the broken file onto the system
text editor or by clicking "Open" inside the editor and selecting the
shortcut.
As in this broken desktop shortcut Example:
#!/usr/bin/env xdg-open [Desktop Entry]
Version=1.0
Name=Google Maps
Exec=/opt/google/chrome/google-chrome --app-id=biglongstringofcharacters
--profile-directory=Default
Terminal=false
Icon=chrome-biglongstringofcharacters-Default
Type=Application
Categories=Network;WebBrowser;
StartupWMClass=crx_biglongstringofcharacters
End of broken shortcut File and start of fixed version:
[Desktop Entry]
Version=1.0
Name=Google Maps
Exec=/opt/google/chrome/google-chrome --app-id=biglongstringofcharacters
--profile-directory=Default
Terminal=false
Icon=chrome-biglongstringofcharacters-Default
Type=Application
Categories=Network;WebBrowser;
StartupWMClass=crx_biglongstringofcharacters
referance url:
https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles
note: this is also how to fix created application shortcuts for the Unity
Launcher which is placed in your home directory under the hidden folder
called local:
/home/username/.local/share/applications/
press ctrl+h to reveal hidden directories