I had some custom scripts that I had custom launchers for on my desktop on 10.04. I would like to recreate that again after migration to 12.04, but unity seems quite foreign to me.
I have answered a similar question here.
Briefly, copy the nearest script from
~/.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.
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!
- Click on UnityLauncherCreator.py
- Type in name
- Select program
- Select icon
- 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
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.
The .desktop files unity uses are stored in "/usr/share/applications/"
You can either (1) edit the files there, or (2) make copies of them and then add them to the unity launcher by dragging them.
(1) makes the changes global, aka. unity will use any command line parameters you add from wherever you launch them.
(2) will obviously not change how unity handles the application by default. useful if you want a custom launcher to run an application in say debug mode, but don't want it to always be run in debug mode.
Hope this helps.