Page 1 of 1

[Solved] Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 5:55 pm
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

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 6:00 pm
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.

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 6:05 pm
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..

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 6:07 pm
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.

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 6:21 pm
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)

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 8:51 pm
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.

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 8:55 pm
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 ...

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 9:05 pm
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?

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 9:13 pm
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

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 9:19 pm
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!

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 9:31 pm
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)

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 9:42 pm
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

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 10:03 pm
by Hagar Delest
I'm not that newbie, or I've missed something:
Screenshot.png
Screenshot.png (3.52 KiB) Viewed 12296 times

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 10:11 pm
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.

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 10:14 pm
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)

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 10:31 pm
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:

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 11:29 pm
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 ...

Re: Openoffice files no more associated in Thunderbird

Posted: Fri Jul 25, 2008 11:38 pm
by Hagar Delest
In the 4th post, Hagar de l'Est wrote:Have you installed the desktop-integration package?
:roll:

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

Posted: Fri Jul 25, 2008 11:42 pm
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.

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

Posted: Fri Jul 25, 2008 11:44 pm
by Hagar Delest
Ah, yes, forgot about them. I should be more clear next time.