Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I create a script and when I execute it, a dialog show for me choose one option: Run in Terminal, Display, Cancel and Run. I want run it automatically without choose option. Anybody know how ?

share|improve this question

Create a launcher. And it will run or run in terminal depending on what you selected when creating the launcher. I do not know what version of Ubuntu you have. I use Ubuntu 10.10

share|improve this answer
I use Ubuntu 10.04 LST – aikido Jul 21 '11 at 16:43
In 10.10 you can create a launcher by right clicking the desktop and choosing "Create Launcher". I would guess that it is the same in 10.04. May be different in 11.04's Unity. – Kevin Jul 21 '11 at 16:53

You should run your script from the terminal. First change the permissions by typing in "chmod 755 scriptname" and then run it by typing "./scriptname".

share|improve this answer
I want to make script, and I want it like icon program, when I double-click it, it run automatically. On windows, I can add parameter into link target of a programming shortcut, but on Linux, I don't know way to do this. Help me. – aikido Jul 21 '11 at 16:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .