Tuesday 3 December 2013

Adding a Launcher to the Launch Bar in Ubuntu 13.10

So I installed Altera Quartus 13.0 (the final version to support the Cyclone II FPGA I'm using), and either I forgot to add a shortcut, or it didn't choose to add one (I know 13.1 did everything for me).

Anyway, to create one, here's what I did:

  • Locate the executable (in this case "/opt/altera/13.0/quartus/bin/quartus")
  • Locate an icon (optional, in this case "/opt/altera/13.0/quartus/adm/quartusii.png")
  • Create a file in "/usr/share/applications" called <filename>.desktop (in this case "quartus.desktop")
  • Open it in an editor and configure as shown below (adjusting the fields like Name, Exec (the executable), Icon, and if you like you can change the applications's Categories field to make searching and grouping of applications easier):

[Desktop Entry]
Version=1.0
Name=Altera Quartus
Exec=/opt/altera/13.0/quartus/bin/quartus
Comment=Altera Quartus 13.0
Terminal=false
Icon=/opt/altera/13.0/quartus/adm/quartusii.png
Type=Application
Categories=IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow
[NewWindow Shortcut Group]
Name=New Window
Exec=/opt/altera/13.0/quartus/bin/quartus
TargetEnvironment=Unity

  • Now the link with selected icon. should appear in your applications menu when you click the icon at the top of your launch bar. Simply drag this into the desired position on your launch bar. Easy.

(On a side note, If you have problems creating and saving in the applications folder like I did, just move the file from another directory with root access.)

1 comment:

  1. Thanks for the tip! Please note that I had to modify the name like this => Name = "Altera Quartus"
    in order to be able to search for "Altera" or "Quartus"

    ReplyDelete