[Solved] Openoffice files no more associated in Thunderbird

Issues with installing under all GNU/Linux Distributions
Post Reply
mlk
Posts: 14
Joined: Fri Jul 25, 2008 5:52 pm

[Solved] Openoffice files no more associated in Thunderbird

Post by mlk »

Hi,

I installed on a Mandriva 2007 the latest openoffice rpm (from openoffice website). Openoffice works good but the attached files in thunderbird are no more open by openoffice (I'm using icewm but I believe the associations thunderbird uses are defined by gnome, not sure though).

How can these asociation be restored ?

Thanks for any information
Last edited by mlk on Fri Oct 22, 2010 12:51 pm, edited 2 times in total.
OOo 2.4.X on Mandriva
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Openoffice files no more associated in Thunderbird

Post by Hagar Delest »

In the Thunderbird options, there should be an option to reset the file association IIRC. I think that the links have been broken by the update.

Thanks to add '[Solved]' at beginning of your first post title (edit button) if your issue has been fixed.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
mlk
Posts: 14
Joined: Fri Jul 25, 2008 5:52 pm

Re: Openoffice files no more associated in Thunderbird

Post by mlk »

The name and path to the openoffice programs has changed with the upgrade.
The association does not work also in gnome (in the file manager for instance)..
I think that setting these associations in gnome would solve the problem also in thunderbird but don't know how to do that..
OOo 2.4.X on Mandriva
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Openoffice files no more associated in Thunderbird

Post by Hagar Delest »

Have you installed the desktop-integration package?
Else, you can set the default application by right clicking the file, Open with another application and set it to OOo by default.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
mlk
Posts: 14
Joined: Fri Jul 25, 2008 5:52 pm

Re: Openoffice files no more associated in Thunderbird

Post by mlk »

Yes, this package is installed. It contains a program gnome-set-default-application that is probably usefull for this purpose but I don't know how to use it .. my version of gnome is 2.16 (the openoffice readme says a gnome 2.0 or latter is needed so it should be ok there)

About doing a right click to open a file, I'd like to have the association for all the files that openoffice can handle (that include many files formats, different word, excel, staroffice etc .... files)
OOo 2.4.X on Mandriva
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Openoffice files no more associated in Thunderbird

Post by Hagar Delest »

In Thunderbird, in the options, I've an Attachments tab with an option to set the default applications to be used depending on the extension.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
mlk
Posts: 14
Joined: Fri Jul 25, 2008 5:52 pm

Re: Openoffice files no more associated in Thunderbird

Post by mlk »

I have it to, but before upgrading openoffice (I can go back to the situation before the upgrade), there was in thunderbird no default application for .doc files for instance, but double clicking on such an attachment worked (launched openwriter). I think this association was set in gnome and thunderbird used it ...
OOo 2.4.X on Mandriva
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Openoffice files no more associated in Thunderbird

Post by Hagar Delest »

Yes, that's a possibility indeed. But if the Gnome file association is broken, I don't know how to fix it. Are you sure all the packages of the OOo version provided by your distro have been removed before OOo upgrade?
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Openoffice files no more associated in Thunderbird

Post by Villeroy »

As far as I know Thunderbird makes use of configuration file ~/.mailcap
/usr/bin/soffice is a symlink to my currently used soffice

Code: Select all

application/vnd.sun.xml.writer;/usr/bin/soffice -n %s
application/vnd.sun.xml.writer.global;/usr/bin/soffice -n %s
application/vnd.stardivision.writer;/usr/bin/soffice -n %s
application/vnd.stardivision.writer-global;/usr/bin/soffice -n %s
application/x-starwriter;/usr/bin/soffice -n %s
application/vnd.sun.xml.writer.template;/usr/bin/soffice -n %s
application/msword;/usr/bin/soffice -n %s
application/vnd.sun.xml.calc;/usr/bin/soffice -n %s
application/vnd.stardivision.calc;/usr/bin/soffice -n %s
application/x-starcalc;/usr/bin/soffice -n %s
application/vnd.sun.xml.calc.template;/usr/bin/soffice -n %s
application/excel;/usr/bin/soffice -n %s
application/msexcel;/usr/bin/soffice -n %s
application/vnd.ms-excel;/usr/bin/soffice -n %s
application/x-msexcel;/usr/bin/soffice -n %s
application/vnd.sun.xml.impress;/usr/bin/soffice -n %s
application/vnd.stardivision.impress;/usr/bin/soffice -n %s
application/vnd.stardivision.impress-packed;/usr/bin/soffice -n %s
application/x-starimpress;/usr/bin/soffice -n %s
application/vnd.sun.xml.impress.template;/usr/bin/soffice -n %s
application/powerpoint;/usr/bin/soffice -n %s
application/mspowerpoint;/usr/bin/soffice -n %s
application/vnd.ms-powerpoint;/usr/bin/soffice -n %s
application/x-mspowerpoint;/usr/bin/soffice -n %s
application/vnd.sun.xml.draw;/usr/bin/soffice -n %s
application/vnd.stardivision.draw;/usr/bin/soffice -n %s
application/x-stardraw;/usr/bin/soffice -n %s
application/vnd.sun.xml.draw.template;/usr/bin/soffice -n %s
application/vnd.sun.xml.math;/usr/bin/soffice -n %s
application/vnd.stardivision.math;/usr/bin/soffice -n %s
application/x-starmath;/usr/bin/soffice -n %s
application/vnd.sun.xml.writer;/usr/bin/soffice -n %s
application/vnd.sun.xml.writer.global;/usr/bin/soffice -n %s
application/vnd.stardivision.writer;/usr/bin/soffice -n %s
application/vnd.stardivision.writer-global;/usr/bin/soffice -n %s
application/x-starwriter;/usr/bin/soffice -n %s
application/vnd.sun.xml.writer.template;/usr/bin/soffice -n %s
application/msword;/usr/bin/soffice -n %s
application/vnd.sun.xml.calc;/usr/bin/soffice -n %s
application/vnd.stardivision.calc;/usr/bin/soffice -n %s
application/x-starcalc;/usr/bin/soffice -n %s
application/vnd.sun.xml.calc.template;/usr/bin/soffice -n %s
application/excel;/usr/bin/soffice -n %s
application/msexcel;/usr/bin/soffice -n %s
application/vnd.ms-excel;/usr/bin/soffice -n %s
application/x-msexcel;/usr/bin/soffice -n %s
application/vnd.sun.xml.impress;/usr/bin/soffice -n %s
application/vnd.stardivision.impress;/usr/bin/soffice -n %s
application/vnd.stardivision.impress-packed;/usr/bin/soffice -n %s
application/x-starimpress;/usr/bin/soffice -n %s
application/vnd.sun.xml.impress.template;/usr/bin/soffice -n %s
application/powerpoint;/usr/bin/soffice -n %s
application/mspowerpoint;/usr/bin/soffice -n %s
application/vnd.ms-powerpoint;/usr/bin/soffice -n %s
application/x-mspowerpoint;/usr/bin/soffice -n %s
application/vnd.sun.xml.draw;/usr/bin/soffice -n %s
application/vnd.stardivision.draw;/usr/bin/soffice -n %s
application/x-stardraw;/usr/bin/soffice -n %s
application/vnd.sun.xml.draw.template;/usr/bin/soffice -n %s
application/vnd.sun.xml.math;/usr/bin/soffice -n %s
application/vnd.stardivision.math;/usr/bin/soffice -n %s
application/x-starmath;/usr/bin/soffice -n %s
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Openoffice files no more associated in Thunderbird

Post by Hagar Delest »

Villeroy wrote:As far as I know Thunderbird makes use of configuration file ~/.mailcap
No such file on my xubuntu (8.04) box!
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
mlk
Posts: 14
Joined: Fri Jul 25, 2008 5:52 pm

Re: Openoffice files no more associated in Thunderbird

Post by mlk »

Villeroy, there is no such file on my system ...

Hagar de l'Est , yes, everything was removed of course (the gnome associations also..)
So, yes, what I'm looking for is doing these associations with the new openoffice (the previous associations would not have worked as the path and executable names of openoffice has changed)
OOo 2.4.X on Mandriva
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Openoffice files no more associated in Thunderbird

Post by Villeroy »

I should have mentioned that file names with a leading dot make a file hidden. I'm pretty shure that every user directory on any Linux system has a configuration file named .mailcap
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Openoffice files no more associated in Thunderbird

Post by Hagar Delest »

I'm not that newbie, or I've missed something:
Screenshot.png
Screenshot.png (3.52 KiB) Viewed 12243 times
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31269
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Openoffice files no more associated in Thunderbird

Post by Villeroy »

Hagar de l'Est wrote:I'm not that newbie, or I've missed something
OK, I thought that configuration file was mandatory for a large group of applications.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
mlk
Posts: 14
Joined: Fri Jul 25, 2008 5:52 pm

Re: Openoffice files no more associated in Thunderbird

Post by mlk »

I don't have that file also, but on another forum I'm posting about the same issue, someone suggested the same thing, will try it (will create this file)
OOo 2.4.X on Mandriva
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Openoffice files no more associated in Thunderbird

Post by Hagar Delest »

There is a mailcap file in the /etc folder however. But it seems that there are other files that precede that one because .doc is associated to Abiword and they open with OOo. Maybe in the ~/.local/share/applications files?

The file association is really a mess under GNU/Linux :roll:
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
mlk
Posts: 14
Joined: Fri Jul 25, 2008 5:52 pm

Re: Openoffice files no more associated in Thunderbird

Post by mlk »

I tried the .mailcap file, it works, .doc attachment for instance launch openoffice ..
BUT, I realized then that on the tarfile that contains the latest openoffice, there is a subdirectory (desktop-integration) that contains some other packages, one is called something like openoffice-freedesktop .... and when it is installed, it makes the associations, the associations are active now in thunderbird, gnome filemanager ...
OOo 2.4.X on Mandriva
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: Openoffice files no more associated in Thunderbird

Post by Hagar Delest »

In the 4th post, Hagar de l'Est wrote:Have you installed the desktop-integration package?
:roll:
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
mlk
Posts: 14
Joined: Fri Jul 25, 2008 5:52 pm

Re: [Solved] Openoffice files no more associated in Thunderbird

Post by mlk »

Well, sorry, but I didn't see the desktop-integration subdirectory, and I saw 2 packages, gnome-integration and kde-integration, so I thought you were talking about these packages.
OOo 2.4.X on Mandriva
User avatar
Hagar Delest
Moderator
Posts: 32627
Joined: Sun Oct 07, 2007 9:07 pm
Location: France

Re: [Solved] Openoffice files no more associated in Thunderbird

Post by Hagar Delest »

Ah, yes, forgot about them. I should be more clear next time.
LibreOffice 7.6.2.1 on Xubuntu 23.10 and 7.6.4.1 portable on Windows 10
Post Reply