How to add a custom launcher in Ubuntu Gnome

First install alacarte.
Open alacarte and add a launcher as required.

Now go to /home/joel/.local/share/applications, and open the file alacarte-made.desktop
Confirm to the prompt asking if you want it to execute.
Now open the “Show Applications” icon, search for the newly added application, right click and add to Favorites.