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

I'm using Ubuntu 12.04 with and would like to know how I can configure it so that when I double click on a file, and it opens it with an already running program, it will raise and focus that program. I'd like to know how to do this under both unity and gnome classic, with either compiz or metacity. I'd guess that this behavior is decided by nautilus but I'm not sure. I'd like to know a solution, even if it involves patching and compiling nautilus.

Someone entered this as a bug once,, but it was marked invalid. I understand that most people might like the default behavior, but I find it an inconvenience that whenever I double click a file I have to find and select the window.

share|improve this question
Already tried: For Unity/Compiz, opened CompizConfig Settings Manager, tried changing "Focus Prevention Level" to Off and "Focus Prevention Windows" to none, all, and blank. It had no effect. – user141238 Mar 19 '13 at 6:05

Your Answer


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

Browse other questions tagged or ask your own question.