1

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?

  • Did you make ec executable? – Chan-Ho Suh Sep 02 '12 at 13:57
  • @Chan-HoSuh yes, but if I double-click it, I get a dialog asking what to do with it(run, view) every time. – CheesyGnocchi Sep 02 '12 at 13:58
  • Just to make sure, your shell script name is ec, not ec.sh, right? Also, if you're using Nautilus, on double-click it will ask what to do with a shell script, since it's also considered a text file. So I don't think that's related to your problem. – Chan-Ho Suh Sep 02 '12 at 14:08

1 Answers1

0

Give the execute permissions to the shell script and make the terminal=true

devav2
  • 36,312