-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Latest Chrome / Dash-To-Dock will have two Icons #215
Comments
The problem is in Chrome's desktop entry, which executes a wrapper. I think GNOME Shell looks at the WM_CLASS window property and creates another icon if it doesn't match with the launcher. Probably not a Dash-To-Dock issue. You can quickly fix it like this:
|
Hi, thanks for the bug support and investigation. There are few problem with chrome (see for instance #128) which I think are probably not strictly related to the extension. Does the problem appear with the extension disabled? |
FYI: I had the same problem with the PhpStorm icon after updating to Gnome-shell 3.18. I verified that the StartupWMClass value was already set correctly. Turning off dash-to-dock and turning it back on again seems to have solved the problem. |
Thanks for the additional information. Is PhpStorm based on chrome? |
No, it's not. PhpStorm stands on its own. It's written in java and spawns multiple java processes. If I understand correctly, that is why it's necessary to explicitly define the StartupWMClass in the .desktop file. |
This bug happens to me on Fedora 23 running Gnome 3.18 & Dash to dock as well. For example, it happens on all Jetbrains IDE for me: Phpstorm, PyCharm.. |
I have collected some more information about this: Someone gave a very useful answer there:
Indeed, this is correct.
|
Here are the relevant methods for setting the WM_CLASS in the Jetbrains IDEs: |
Thanks @Yannik for looking into this. So, if I understand correctly, it is a bug in IntelliJ/PhpStorm that WM_CLASS strings are not formatted correctly? In that case, can you file a bug report upstream? (I would do it myself if I'd know more about java, but "null terminating strings" means nothing to me :-)) |
Jetbrains IDEs must null-terminate the string to get this working. |
Original jetbrains-issue implementing correct WM_CLASS: https://youtrack.jetbrains.com/issue/IDEA-70806 I don't have the time to go through creating a complete writeup of these notes in a jetbrains bug just now, if someone else can go ahead and do so, please do it. |
https://youtrack.jetbrains.com/issue/WI-31103 |
@tflori Thanks for the additional information. |
Somehow this worked in the past but I think due to changes in Chrome dash-to-dock can't add Chrome to Favorites with right Click inside the Dash and also if I add the Favorite inside the Applications it will create a new Icon while clicking on the Dash Icon.
This worked in the past.
The text was updated successfully, but these errors were encountered: