After installing Thunderbird, preferred applications shows both "Mozilla Thunderbird" and "Thunderbird"

Bug #373167 reported by ma2412ma
42
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gnome-control-center (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

After installing the package "thunderbird" (and not the transitional package "mozilla-thunderbird"), the preferred applications dialog shows two options for the preferred mail client: "Thunderbird" and "Mozilla Thunderbird". The latter entry should not be present.

affects: ubuntu → thunderbird (Ubuntu)
Revision history for this message
Id2ndR (id2ndr) wrote :

Confirm on jaunty up-to-date

Changed in thunderbird (Ubuntu):
status: New → Confirmed
Revision history for this message
John Vivirito (gnomefreak) wrote :

I am unable to reproduce this in Karmic. I dont have my Jaunty system working at this time.

Revision history for this message
John Vivirito (gnomefreak) wrote :

Please run
apt-cache policyu thunderbird mozilla-thunderbird
and paste the out put here. run the above command the way i typed it. It will produce 2 sections i need both from both of you.

Revision history for this message
John Vivirito (gnomefreak) wrote :

ooops try
apt-cache policy thunderbird mozilla-thunderbird
sorry there was a typo in the command i gave in last post

Revision history for this message
Id2ndR (id-2ndr) wrote : Re: [Bug 373167] Re: After installing Thunderbird, preferred applications shows both "Mozilla Thunderbird" and "Thunderbird"

$ apt-cache policy thunderbird mozilla-thunderbird
thunderbird:
  Installé : 2.0.0.21+nobinonly-0ubuntu1.9.04.1
  Candidat : 2.0.0.21+nobinonly-0ubuntu1.9.04.1
 Table de version :
 *** 2.0.0.21+nobinonly-0ubuntu1.9.04.1 0
        500 http://fr.archive.ubuntu.com jaunty/main Packages
        100 /var/lib/dpkg/status
mozilla-thunderbird:
  Installé : (aucun)
  Candidat : 2.0.0.21+nobinonly-0ubuntu1.9.04.1
 Table de version :
     2.0.0.21+nobinonly-0ubuntu1.9.04.1 0
        500 http://fr.archive.ubuntu.com jaunty/main Packages

Revision history for this message
John Pye (jdpipe) wrote :

See also bug 23281

Revision history for this message
John Vivirito (gnomefreak) wrote :

This bug sint valid for thunderbird since it doesn't do anything for nautilus selections.
Re-assigned.
What does bug #23281 have anything to do with this bug?

affects: thunderbird (Ubuntu) → nautilus (Ubuntu)
Revision history for this message
John Pye (jdpipe) wrote :

Bug 23281 gives pointers to the way that this stuff is implemented... using files like (dpkg -L nautilus-sendto):

/usr/lib/evolution/2.26/plugins/org-gnome-evolution-send-attachments-to.eplug
/usr/lib/evolution/2.26/plugins/liborg-gnome-evolution-send-attachments-to.so

Revision history for this message
Id2ndR (id2ndr) wrote :

I managed to workaround the trouble :
$ sudo rm /usr/bin/thunderbird

The facts are that :
- gnome-default-applications-properties looks for mozilla-thunderbird and thunderbird executables and show corresponding entries in the menu ("Mozilla Thunderbird" and "Thunderbird"),
- thunderbird package install both /usr/bin/mozilla-thunderbird and /usr/bin/thunderbird links (the target is ../lib/thunderbird/thunderbird for both).

Usefull commands to understand the facts :
$ strace gnome-default-applications-properties 2>&1 | grep thunderbird
$ dpkg --listfiles thunderbird

Revision history for this message
ma2412ma (ma2412ma) wrote :

ld2ndR, you should execute:
$ sudo rm /usr/bin/mozilla-thunderbird
because mozilla-thunderbird is deprecated and only thunderbird should be used in future.

Anyway, this would bring us back to the thunderbird package. If mozilla-thunderbird was not created, the problem would be solved. Can anyone confirm this?

Revision history for this message
Bruno Girin (brunogirin) wrote :

ma2412ma: I can confirm that after removing mozilla-thunderbird, the preferred applications window only shows Thunderbird and no longer shows Mozilla Thunderbird as an option.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the issue is not a nautilus one

Changed in nautilus (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: Confirmed → Invalid
Revision history for this message
Bruno Girin (brunogirin) wrote :

Sebastien: is it an issue in the way Thunderbird is packaged then? Should I re-assign it to that package?

komputes (komputes)
affects: nautilus (Ubuntu) → mozilla-thunderbird (Ubuntu)
Changed in mozilla-thunderbird (Ubuntu):
status: Invalid → Confirmed
Revision history for this message
John Vivirito (gnomefreak) wrote :

It has nothing to do with thunderbird packaging. it is a desktop bug. what ever controls the prefered apps entry. I am unable to reproduce this bug still. With 2.0.0.21 nor 3.0

Please update me as to how this is a thunderbird bug with packaging.
I'm guessing that Sebastien can confirm this is not a thunderbird bug other wise desktop-bugs wouldnt have been assigned.
Please let me know what package you think it is Sebastien.

Revision history for this message
Bruno Girin (brunogirin) wrote :

John, the reason why it looks like a Thunderbird bug is that it appears that the Thunderbird package installs a thunderbird and a mozilla-thunderbird link in /usr/bin, both pointing to /usr/lib/thunderbird/thunderbird. If you remove the mozilla-thunderbird link, it resolves the problem. So steps to reproduce:

cd /usr/bin
sudo ln -s ../lib/thunderbird/thunderbird mozilla-thunderbird

If you now go to System -> Preferences -> Preferred Applications, you will see both a "Thunderbird" option and a "Mozilla Thunderbird" one. If you remove the /usr/bin/mozilla-thunderbird link, the second option disappears from preferred applications.

It looks like the /usr/bin/mozilla-thunderbird link that is created when installing the thunderbird package is superfluous. Or is this the intended behaviour and does it mean that the preferred applications preference tool should show only one option even if both links are present?

Revision history for this message
John Vivirito (gnomefreak) wrote :

On 06/03/2009 08:01 AM, Bruno Girin wrote:
> John, the reason why it looks like a Thunderbird bug is that it appears
> that the Thunderbird package installs a thunderbird and a mozilla-
> thunderbird link in /usr/bin, both pointing to
> /usr/lib/thunderbird/thunderbird. If you remove the mozilla-thunderbird
> link, it resolves the problem. So steps to reproduce:
>
> cd /usr/bin
> sudo ln -s ../lib/thunderbird/thunderbird mozilla-thunderbird
>
> If you now go to System -> Preferences -> Preferred Applications, you
> will see both a "Thunderbird" option and a "Mozilla Thunderbird" one. If
> you remove the /usr/bin/mozilla-thunderbird link, the second option
> disappears from preferred applications.
>
> It looks like the /usr/bin/mozilla-thunderbird link that is created when
> installing the thunderbird package is superfluous. Or is this the
> intended behaviour and does it mean that the preferred applications
> preference tool should show only one option even if both links are
> present?
>
Thanks that makes sense. I haven't looked at 2.0 debian/ in a while. I
know that thunderbird-3.0 no longer has this issue but i couldn't
reproduce it with tb2 either. I'm not going to have time for ~1 month to
look at this but i will ping Alexander and ask him to look into it or Fabien

--
Sincerely Yours,
    John Vivirito

https://launchpad.net/~gnomefreak
https://wiki.ubuntu.com/JohnVivirito
Linux User# 414246

"How can i get lost, if i have no where to go"
    -- Metallica from Unforgiven III

Revision history for this message
Alexander Sack (asac) wrote :

gnome-control-center should remove the "mozilla-thunderbird" part from /usr/share/gnome-control-center/default-apps/gnome-default-applications.xml;

alternatively - maybe a cleaner fix - it could follow links before matching the executable.

affects: mozilla-thunderbird (Ubuntu) → gnome-control-center (Ubuntu)
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue is fixed in the current version of GNOME in Oneiric, closing the bug

Changed in gnome-control-center (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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