To clarify, when I click an icon in plank it opens a window of the respective app. If I click that icon again it gets minimized like it should. But when I do the same with Nautilus it opens up a new window with new session of the application. I don't want that to happen and I remember that it wasn't always like this.
When I open it through Gnome dash (on the right) it doesn't show this behavior. The problem is only in Plank.
Ubuntu Gnome 17.04
The icons in the Dash and in the Launcher uses different
.desktop
-files. The icon in the launcher usesorg.gnome.Nautilus.desktop
, the icon in the Dash usesnautilus.desktop
. Starting Nautilus from the different location will add different icons (with the same look) to theplank
-dock.I added both icons to the dock to get some meaningful output and they have different behavior. The
org.gnome.Nautilus.desktop
icon will behave as you want, it will minimize all open Nautilus-windows and rise all off them clicking the icon again. Thenautilus.desktop
-icon behaves as you describe, it will always open a new Nautilus-window.You will find the launcher-entries for the
plank
-dock inHere some output from my configuration:
Content of
org.gnome.Nautilus.dockitem
:Content of
nautilus.dockitem
: nautilus.dockitemWhen you check the files in
~/.config/plank/dock1/launchers
, I am sure you will findnautilus.dockitem
as this is the one which behave as you described. To remove the icon from the dock, close all Nautilus-windows, right-click the icon in theplank
-dock and un-checkKeep in Dock
. Then start Nautilus from the Launcher (you will probably have to add Nautilus to favorites before) and lock the new Nautilus-icon in theplank
-dock with right-click and checkingKeep in dock
.Confusing, isn't it?
A funny thing is that I can't find the files
org.gnome.Nautilus.desktop
andnautilus.desktop
with Nautilus, but they are listed when I usels -a /usr/share/applications
in the terminal...Tested in Ubuntu Gnome 17.04