Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.