← Back to team overview

openjdk team mailing list archive

[Bug 751909] Re: Java Swing applications displayed with wrong name

 

** Description changed:

  Binary package hint: unity
  
  On launcher, all Java Swing applications are with wrong name. Their
  tooltip shows the Java class name, with the dots changed by hiphens.
  
  For example, Netbeans icon itself gets inactive after startup.
  Then an icon with a '?' shows up indicating "java-lang-Thread" on mouseover.
  
- ProblemType: Bug
- DistroRelease: Ubuntu 11.04
- Package: unity 3.8.2-0ubuntu1
- ProcVersionSignature: Ubuntu 2.6.38-7.39-generic 2.6.38
- Uname: Linux 2.6.38-7-generic x86_64
- Architecture: amd64
- CompizPlugins: [core,bailer,detection,composite,opengl,decor,mousepoll,vpswitch,regex,animation,snap,expo,move,compiztoolbox,place,grid,imgpng,gnomecompat,wall,ezoom,workarounds,staticswitcher,resize,fade,unitymtgrabhandles,scale,session,unityshell]
- Date: Tue Apr  5 22:32:09 2011
- InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110329.1)
- InstallationMedia_: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110329.1)
- InstallationMedia__: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110329.1)
- ProcEnviron:
-  LANGUAGE=de_AT:en
-  LANG=de_AT.UTF-8
-  LC_MESSAGES=de_AT.UTF-8
-  SHELL=/bin/zsh
- ProcVersionSignature_: Ubuntu 2.6.38-7.39-generic 2.6.38
- ProcVersionSignature__: Ubuntu 2.6.38-7.39-generic 2.6.38
- SourcePackage: unity
- UpgradeStatus: No upgrade log present (probably fresh install)
+ ------------------------------------------------------------------------------------------
+ 
+ Treviño: this issue is java related and it's caused by the fact that the Java apps doesn't  correctly set the WM_CLASS X property on their windows. There was a bug for it (including a patch): http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6528430
+ The ubuntu java package should probably include it.
+ 
+ A workaround to fix it is to use this window matching agent: https://github.com/jelmerk/window-matching-agent then you need to update the application
+ .desktop file to change the Exec value including -javaagent:agent.jar=<AppWMClass> and adding StartupWMClass=<AppWMClass>.

** Also affects: openjdk-6 (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: openjdk-6 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-6 in Ubuntu.
https://bugs.launchpad.net/bugs/751909

Title:
  Java Swing applications displayed with wrong name

Status in BAMF Application Matching Framework:
  Confirmed
Status in Unity:
  Confirmed
Status in Unity 2D:
  Confirmed
Status in “bamf” package in Ubuntu:
  Confirmed
Status in “openjdk-6” package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: unity

  On launcher, all Java Swing applications are with wrong name. Their
  tooltip shows the Java class name, with the dots changed by hiphens.

  For example, Netbeans icon itself gets inactive after startup.
  Then an icon with a '?' shows up indicating "java-lang-Thread" on mouseover.

  ------------------------------------------------------------------------------------------

  Treviño: this issue is java related and it's caused by the fact that the Java apps doesn't  correctly set the WM_CLASS X property on their windows. There was a bug for it (including a patch): http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6528430
  The ubuntu java package should probably include it.

  A workaround to fix it is to use this window matching agent: https://github.com/jelmerk/window-matching-agent then you need to update the application
  .desktop file to change the Exec value including -javaagent:agent.jar=<AppWMClass> and adding StartupWMClass=<AppWMClass>.

To manage notifications about this bug go to:
https://bugs.launchpad.net/bamf/+bug/751909/+subscriptions