Plank creates a separate icon for apps on Isis

Bug #1307091 reported by Rubén Reina
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Plank
Invalid
Undecided
Unassigned

Bug Description

I've made my own .desktop file for Android Studio and PHPStorm and put it in /usr/share/applications/ folder. When I open either one another icon appear in plank.

This is on Isis unstable, this didn't happen to me in Luna stable.

Here is attached a screenshot with Plank and the .desktop file.

Revision history for this message
Rubén Reina (ruben-reina-dev) wrote :
description: updated
description: updated
Revision history for this message
Rico Tzschichholz (ricotz) wrote :

Please mention the used libbamf and plank versions for both cases. Check if your system is updated as well.
Also attach the (not-)/working custom desktop-file.

Changed in plank:
status: New → Incomplete
Revision history for this message
Rubén Reina (ruben-reina-dev) wrote :

- libamf3-2 0.5.1+14.04.20140409-0ubuntu1+elementary2~ubuntu14.04.1 -
- plank:i386 0.5.0+bzr1015-0elementary1~ubuntu14.04.1

My system is updated and here are attached not working .desktop files.

Changed in plank:
status: Incomplete → New
Revision history for this message
Rico Tzschichholz (ricotz) wrote :

This can probably be fixed by adding the proper StartupWMClass reference to support BAMF to find the correct application for an appearing window. In this case add "StartupWMClass=jetbrains-phpstorm" to phpstorm.desktop and "StartupWMClass=jetbrains-android-studio" to android_studio.desktop.

Changed in plank:
status: New → Incomplete
Revision history for this message
Rubén Reina (ruben-reina-dev) wrote :

Fixed. Thank you so much, it appear to a problem with Java apps.

Changed in plank:
status: Incomplete → Invalid
Revision history for this message
Valentin (talbot-desire) wrote :

Thank you, Rico!
I resolve similar bug with Intellij Idea icon.
I just add StartupWMClass=jetbrains-idea in my idea.desktop file.

But i have one question, howto find out StartupWMClass of java app?

Revision history for this message
Salvatore.tip (salvatore-tip) wrote :

To find the correct StartupWMClass, you must launch the app then write in terminal:

xprop WM_CLASS

and click the cursor on the target window

Revision history for this message
Jim Klein (jklein) wrote :

Doesn't support java applications as well as one would like, as they typically have multiple WM classes, at least with the Oracle JREs. For example, a typical java app will have a WM class that looks like this:

WM_CLASS(STRING) = "sun-awt-X11-XFramePeer", "virtuallab-VirtualMicroscope"

If you set the StartupWMClass in the .desktop file to virtuallab-VirtualMicroscope it doesn't work and app icons disappear in Plank almost immediately after they appear. If you set StartupWMClass to sun-awt-X11-XFramePeer you get two proper icons, with one that disappears after 10 seconds or so. BAMF also gets confused for other applications, showing a cached icon from another app. Not a crisis, but would be nice if it was a bit cleaner and supported the second entry.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.