How does one recreate a custom application launcher that takes command line syntax and even perhaps parameters?

I have answered a similar question here.

Briefly, copy the nearest script from /usr/share/applications/ to ~/.local/share/applications and then edit the xyz.desktop file. The line that starts Exec= is the line you need to edit, to put your own command in, along with whatever command line options you want. You will probably also want to edit the Name= line to describe your own script.

Once you've done that you'll need to restart your computer or log out/log in, then you can hit the Super key, start typing part of the name you set and your launcher should appear. Select it and hit Enter and it will run your command.


Maybe you are looking for this command:

gnome-desktop-item-edit ~/Desktop/ --create-new

Good Luck!


I made a simple python script with GUI for this!

It's on http://jurschreuder.nl/

It's called Unity Launcher Creator, and I even use it myself!

Super simple:

  1. Unzip
  2. Click on UnityLauncherCreator.py
  3. Type in name
  4. Select program
  5. Select icon
  6. A launcher is created that you can drag & drop to Unity

I've included some icon files created by a genetic algorithm (GenArt for Android). You can use it in case the program doesn't supply a png or when it's just your own simple bash script.


You can install by

sudo apt-get install bzr

then

bzr branch lp:unity-launcher-editor
cd unity-launcher-editor/
./ule

when I tried to create a custom launcher, nothing happened when I tried to set a custom launcher icon. maybe the launcher icon needs to be a certain size, but I could not find that info. instead of creating a launcher with a random icon, I just stopped right there. but try this prog out, it looks promising.