Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 have a file manager in c++ for ubuntu,

How to make that it start before everything, after login

share|improve this question

migrated from Jun 13 '12 at 23:30

This question came from our site for professional and enthusiast programmers.

Put it in "startup programs" – Eugen Rieck Jun 13 '12 at 23:30
Why does it need to be started before everything? – Riateche Jun 13 '12 at 23:33

Lots of ways. The easiest it put it in the user's .bashrc.

Alternatively, here's an example that automatically starts "firefox" for all users (courtesy of updating /etc/xdg/autostart):

share|improve this answer
bashrc will be executed every time user opens terminal emulator and more. It's not what was asked. – Riateche Jun 13 '12 at 23:32

Try to put a call of your program into ~/.xsessionrc.

Also, you can replace session command in configuration of your login manager. By default in Ubuntu 12.04 this command is placed after Exec= in /usr/share/xsessions/ubuntu.desktop file.

share|improve this answer

Your Answer


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