unity laucher displays second icon for running version of thunderbird

Bug #1004790 reported by Rocko on 2012-05-26
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
BAMF
Low
Unassigned
Unity
Confirmed
Low
Unassigned
bamf (Ubuntu)
Low
Unassigned
unity (Ubuntu)
Undecided
Unassigned

Bug Description

I am seeing two Thunderbird icons in the unity launcher, ie one is the launcher icon and the other is the running application (see attached image). This has been happening ever since the fix for bug #995916 was released (bamf is now at version 0.2.118-0ubuntu0.1), ie the fix caused a regression.

I am running Thunderbird with a script file that also runs another application, davmail, if it is not already running:

#!/bin/bash
thunderbird $1 $2 &disown
DAVMAIL=$(ps xa|grep /usr/bin/davmail | grep -v grep)
if [ "$DAVMAIL" == "" ]; then
  davmail &disown
fi

My /usr/share/applications/thunderbird-davmail.desktop launcher file is the same as the thunderbird.desktop file, except that the exec line specifies the above script file. So the .desktop file contains the line:

StartupWMClass=Thunderbird

and CCSM confirms that the WMClass for the Thunderbird application window is called Thunderbird.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: unity 5.12-0ubuntu1.1
Uname: Linux 3.4.0-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
CompizPlugins: [core,composite,opengl,decor,mousepoll,gnomecompat,imgpng,snap,grid,wall,move,place,vpswitch,session,compiztoolbox,extrawm,resize,regex,animation,workarounds,unitymtgrabhandles,expo,fade,scale,ezoom,unityshell]
Date: Sat May 26 10:25:17 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcEnviron:
 LANGUAGE=en_AU:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_AU.UTF-8
 SHELL=/bin/bash
SourcePackage: unity
UpgradeStatus: Upgraded to precise on 2012-03-02 (84 days ago)

Rocko (rockorequin) wrote :
Omer Akram (om26er) on 2012-05-28
Changed in unity (Ubuntu):
importance: Undecided → Low
Omer Akram (om26er) on 2012-05-28
affects: unity (Ubuntu) → bamf (Ubuntu)
Changed in unity:
importance: Undecided → Low
Changed in bamf:
importance: Undecided → Low
status: New → Confirmed
Changed in unity:
status: New → Confirmed
Changed in bamf (Ubuntu):
status: New → Confirmed
Rocko (rockorequin) wrote :

A workaround is to add 'sleep 10' to the launcher script so it doesn't terminate so quickly. Is the newer version of Unity detecting that the script has terminated and then not considering it as a possible match for the Thunderbird window when TB does finally run?

I am finding this version of unity (5.12-0ubuntu1.1) to be quite hit-and-miss when it comes to matching launcher icons. I can make it match Netbeans 7.1.2 by specifying a startup class of java-lang-Thread, but I can no longer make it recognise a file I run with "Exec=java -jar <some program>.jar", even if I specify the startup class in the desktop file.

Martin (cyderia8530) wrote :

I also have this problem. One difference though: I'm not running Thunderbird with a script file.

Jere Kupari (jere-kupari) wrote :

I also get two Thunderbird icons and don't have any scripts or anything strange. I installed this system a couple of weeks ago from the 12.04.1 daily live cd. Though I have a home partition from my previous install.

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

Other bug subscribers