Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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, belacq, Thomas W., 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.

1 Answer 1

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

~/Documents/myCompiledExecutable
share|improve this answer

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