Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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

This question already has an answer here:

I have compiled and made an exucutable C++ program in ubuntu.But It only runs in terminal.that is I have to give the ./example command in terminal.If I click it nothing happens and says no suitable apps. Now what should I do to run this program on startup.?Even if it is in the terminal not in X-term that would do. But I have to start this program on every startup. I tried this command, but nothing happens on startup,

gnome-terminal -e "./routine" --working-directory "/home/tamim"


share|improve this question

marked as duplicate by Radu Rădeanu, Eric Carvalho, belacqua, Thomas Ward, Basharat Sialvi Jun 15 '13 at 6:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

You can call it from ~/.bashrc file. Put path to your executable at the end of it:

share|improve this answer

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