unity laucher displays second icon for running version of thunderbird
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BAMF |
Confirmed
|
Low
|
Unassigned | ||
Unity |
Confirmed
|
Low
|
Unassigned | ||
bamf (Ubuntu) |
Confirmed
|
Low
|
Unassigned | ||
unity (Ubuntu) |
Confirmed
|
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-
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/
StartupWMClass=
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
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)
Changed in unity (Ubuntu): | |
importance: | Undecided → Low |
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 |
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.