Windows 10 – Fix Duplicate Icons on Taskbar in IntelliJ

intellij-ideataskbarwindowswindows 10

I have an issue with IntelliJ IDEA and Android Studio when I pin the icons to my taskbar. If I click on the icon, the actual window opens in a smaller duplicate icon on the taskbar rather than opening the window in the pinned icon.

I have tried uninstalling with Revo Uninstaller Pro and reinstalling, but to no avail. Copying the .exe file directly to the AppData\Roaming\Microsoft\Internet Explorer\Quick Launch\User Pinned\TaskBar folder doesn't work – the icon does not appear.

This is not a duplicate of this question: Some taskbar pinned icons are duplicated when an instance of the application is running

I have tried all the suggested solutions from the earlier question, to check, but there is still a duplicate icon, so maybe it is a problem with Windows 10 specifically. I do not have any problems with any other programs.

Best Answer

[DISCLAIMER]

This is not actually a fix, more of a hack to make this work since it annoyed the hell out of me.


First of all, you need to find out what the AppID of the app (here IntelliJ) is. To do this, you can use Taskbar Tweaker (you can uninstall it afterwards). Open the program and go to Taskbar Inspector. The string next to the arrow is the AppID.

The current EAP version has the AppID: "IntelliJ IDEA (Minerva).-1274214200" but be sure to check, if it doesn't work (release versions of IntelliJ have different IDs)

The next thing you need is mkshortcut.exe which will create a custom shortcut for you. Check out this walk-through and follow all the steps replacing the target with the file path of idea.exe or idea64.exe and the appid with the one above.

If you now start IntelliJ from anywhere, it should group properly with the pinned icon.

Btw. This is a simplified version of this walk-through: neowin.net/forum/topic/985014-guide-pin-programs-with-custom-launchers-to-taskbar/

Related Question