How to Fix Duplicate App Icons Appearing on the Ubuntu Dock

Clicking your pinned Google Chrome, Firefox, Slack, or VS Code shortcut on the Ubuntu Dock only to watch a second icon pop up further down the bar — leaving your original shortcut sitting cold with no orange active dot — clutters up your workspace fast. Ubuntu splits a single application into two separate dock icons whenever the running window announces a slightly different identifier from the pinned launcher shortcut.

Fix 1: Unpin the Dead Icon and Pin the Active Running Window

Most often, an app update changed the executable launcher path slightly while your dock stayed pinned to an older shortcut:

  1. Launch the application from the dock or Apps grid so both icons are visible side by side.
  2. Right-click the original pinned icon (the one without the coloured dot showing it is running) and select Unpin (or Remove from Favourites on older Ubuntu releases).
  3. Right-click the active running icon (the one with the running dot next to it) and select Pin to Dash (or Add to Favourites).
  4. Drag the newly pinned icon back into its preferred spot on your Ubuntu Dock, then close and reopen the app once to confirm only one clean icon lights up.

Fix 2: Remove Duplicate Snap vs .deb Installations

Ubuntu ships many desktop apps in both the Snap store and traditional .deb (APT) format. If both versions ended up installed side by side, launching your pinned shortcut opens copy A while links from emails or files may spawn copy B:

  1. Open Terminal (Ctrl + Alt + T) and check installed Snap apps:
    snap list
  2. Check whether a matching APT package is also installed (for example with Firefox or Chrome):
    dpkg -l | grep -i firefox
  3. Keep whichever version you actually use (settings and extensions stay separate between Snap and APT, so back up profiles before removing) and remove the unwanted duplicate cleanly via Ubuntu’s App Center or sudo snap remove <name> / sudo apt remove <name>.

Fix 3: Match StartupWMClass on Custom Desktop Launchers

If you created a custom web-app shortcut or manually unpacked a portable Linux app into ~/.local/share/applications/, Ubuntu may show a generic cogwheel duplicate icon alongside the pinned shortcut because its .desktop entry lacks a matching StartupWMClass= line. Adding the app’s exact window class string inside its .desktop file lets GNOME Shell group the running window straight back underneath its single pinned dock button cleanly.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.