I installed Nemo from the Ubuntu 13.10 Saucy repositories, and replaced Nautilus with it as shown here:
$ xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search
$ gsettings set org.gnome.desktop.background show-desktop-icons false
$ gsettings set org.nemo.desktop show-desktop-icons true
Now, when I start Nemo from the Unity Launcher, it places its window below other windows on the screen. I want Nemo to start like Nautilus did, and every other application, in the foreground.
I started to experience the issue with other apps later, and then I began to search for solution not for Nemo, but in general, and found one on the Ubuntu Forums, and two on Ask Ubuntu as well.
This is caused by Compiz, so you have to use
compizconfig-settings-manager
(sudo apt-get install compizconfig-settings-manager
, then startccsm
command with Alt+F2, or from terminal, or search for "CompizConfig Settings Manager" from the dash).After following these steps, all my newly opened windows show up in the foreground as expected.
The question about nemo (and some other applications for that matter) starting up in the background, is still valid in Ubuntu 14.04.
The solution provided by yourself (Barta Tamás, answer 1) is also still solving this issue under 14.04:
And all applications that newly opened will now appear in the foreground.
A more general (but also much more flexible) solution is to use devilspie2.
Install the package devilspie2, add the command
/usr/bin/devilspie2
to your startup applications, create the file~/.config/devilspie2/window_open.lua
and fill it with the following content:You can easily add other commands, so if you also want Nemo to appear in the center of your screen, try this:
This should work on most window managers, not only the ones supporting Compiz!
For debugging (run
devilspie2 --debug
from the shell), it's probably a good idea to have something like this: