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

How to make that it start before everything, after login

share|improve this question

migrated from stackoverflow.com 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

2 Answers 2

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

 
discard

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