elementary OS User Handbook
eOS HomeTeamBlogSupportGet Involved
  • 🔵Welcome to elementary OS
  • Overview
    • 📘Idea & Evolution
    • 📘Desktop Tour
      • 📖Greeter
      • 📖Panel
      • 📖Dock
      • 📖App Windows
      • 📖Multitasking
    • 📘System Idiosyncrasies
      • 📖Gestures
      • 📖Hot Corners
      • 📖Picture-in-Picture
      • 📖Display Filters
      • 📖Feedback App
      • 📖Missing Habits
  • Get Started
    • 📗Install elementary OS
      • 📖Writing ISO with Etcher
      • 📖Using GParted
    • 📗Explore System Settings
      • 📖Manage User Accounts
      • 📖Control System Access
      • 📖Set up Date & Time
      • 📖Configure Network
      • 📖Add Online Accounts
      • 📖Stay Secure & Private
      • 📖Adjust Power Settings
      • 📖Set Language & Formats
      • 📖Keyboard Settings
      • 📖Mouse & Touchpad
    • 📗Customize Desktop
      • 📖Set up Visual Style
      • 📖Change Wallpaper
      • 📖Adjust Text Size
      • 📖Configure Dock & Panel
      • 📖Windows and Corners
    • 📗Plug in Hardware
      • 📖Connect via Bluetooth
      • 📖Printers & Scanners
      • 📖Hook up Tablet
  • Best Practices
    • 📙Tips & Tricks
      • 📖Add PPAs
      • 📖Get More Tweaks
      • 📖Max the AppCenter Out
      • 📖Add More Fonts
      • 📖Make QT apps look like GTK
    • 📙2 Advanced
      • 📖Open as Admin
      • 📖Create Local Network
      • 📖Plank Advanced Customization
  • Troubleshooting
    • 📕Installation Issues
    • 📕Common Issues
      • 📖Grub menu 30 sec
      • 📖Nvidia Drivers
      • 📖Double Icons in Plank
      • 📖Sound and Picture Issues
      • 📖Ghost Updates
  • Extra Info
    • 📒Useful Links
    • 📒Feedback
Powered by GitBook
On this page
  1. Troubleshooting
  2. Common Issues

Double Icons in Plank

One app, two same icons

PreviousNvidia DriversNextSound and Picture Issues

Last updated 1 year ago

When launching a Flatpak app, you see two icons of this app in the .

This is a related to the Flatpak and Plank interaction. If it still persists in your system, there is a solution.

What you need is to edit the .desktop file of the target app by adding the StartupWMClass=<VALUE> string.

Let's take the Transmission app as an example in the following guide.

  1. Find out the <VALUE> you need to add to StartupWMClass=

    • Launch the app which shows the icon duplicate.

    • Open the Terminal and run: xprop WM_CLASS. Your mouse cursor must turn into a cross.

    • Hover the cursor over your app window, and click. In the Terminal, you will see the <VALUE> you need to add.

  1. Find and then open in the text editor the .desktop file of the app. You can search for the desktop file of your app in the same direction where the Transmission desktop file in the example is.

/home/<USER_NAME>/.local/share/flatpak/app/com.transmissionbt.Transmission/current/3d0fb3864db64add64e036679cccf94bd31d38ddcdd5b22ea263ad742b9ff458/export/share/applications/com.transmissionbt.Transmission.desktop
  1. In the end of the [Desktop Entry] section, insert StartupWMClass=transmission-gtk string where you will have your app value instead of transmission-gtk.

  1. Save changes and reboot.

  2. Launch the app. There must be no more icon duplicates in the Dock.

After the app version is updated, an icon duplicate may re-appear in the Dock.

In this case, you need to repeat the procedure above and add StartupWMClass=<VALUE> to the app .desktop file again.

📕
📖
Dock
known issue
Example of the Double Transmission Icon
Value found in the Terminal
Added StartupWMClass to the .desktop file (example)