Friday, August 22, 2014

Ubuntu 14.04 add custom launcher to menu

Ubuntu 14.04 create custom launcher prerequisites:

$ sudo apt-get install gnome-panel --no-install-recommends

Create executable file for easy reuse

$ cd ~
$ touch launcher-create.sh
$ chmod +x launcher-create.sh

Edit the file launcher-create.sh and set contents:

#!/bin/bash
sudo gnome-desktop-item-edit /usr/share/applications/ --create-new

Anytime you want to create a new launcher, run:

$ ~/launcher-create.sh

After creating the launcher, it will show up in Unity's search result.

No comments: