I tried to solve this 'cause I'm not the only one with this problem, but still I can't get rid of it.
The problem is like in this gif:
BUT I saw that if I open nautilus using ALT+F2, it doesn't disappear. Why is that?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
What is happening is that nautilus itself is always running in the background. If you start a new nautilus instance, it will just "attach" to the previously running instance of nautilus, then close itself. That is why it is disappearing from the launcher.
Try opening nautilus with Alt + F2 like you said, right click it, then hit "Lock to Launcher".
This should make it so that it won't disappear from the launcher, but it will also stay there the entire time.
You can also
killall nautilus then try opening it from the launcher. Since there are no longer any more instances when you start it, it should stay open.
workaround in this post worked for me
I went to /usr/share/applications and took a backup of nautilus.desktop and org.gnome.Nautilus.desktop
- In nautilus.desktop, removed "NotShowIn=Unity;"
- In org.gnome.Nautilus.desktop, added "NotShowIn=Unity;" and removed "OnlyShowIn=Unity;"