Possible Duplicate:
Custom Ubuntu launcher doesn't launch
I used How to pin Eclipse to the Unity launcher? this to pin Eclipse to unity launcher. But now I need to replace eclipse binary with script in order to use custom gtk config. Here is a sh file(named ec):
#!/bin/sh
GTK2_RC_FILES=gtkrc-sar ./eclipse
And here's desktop file:
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=/home/mighter/development/eclipse/icon.xpm
Exec=/home/mighter/development/eclipse/eclipse
Terminal=false
Categories=Development;IDE;Java;
If I replace eclipse(binary name) with ec(sh name), It won't run. How do I fix this?