LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-10-2017, 12:48 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Posts: 1,061

Rep: Reputation: 98
Thunderbird not opening attachments


I am running Slackware64 14.2 and KDE. After an upgrade over the weekend to Slackware, Thunderbird (now 52.4.0) and LibreOffice (now 5.4.2) we can no longer open attachments in Thunderbird messages. I get the message "This link needs to be opened with an application. Send to:", then there is a 'Choose' button to browse the system.

How can I tell thunderbird to use LibreOffice calc for spreadsheets and csv files, Writer for docs, etc.? I have found nothing on google or the thunderbird forum so far and have an entire office up in my face about not being able to open email attachments!
 
Old 10-10-2017, 05:13 PM   #2
Gerard Lally
Senior Member
 
Registered: Sep 2009
Location: Ireland
Distribution: Slackware, Crux, NetBSD
Posts: 1,277

Rep: Reputation: 764Reputation: 764Reputation: 764Reputation: 764Reputation: 764Reputation: 764Reputation: 764
Why don't you associate file types with applications?

KDE System Settings | File Associations
 
Old 10-10-2017, 11:28 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Posts: 1,061

Original Poster
Rep: Reputation: 98
Quote:
Originally Posted by Gerard Lally View Post
Why don't you associate file types with applications?

KDE System Settings | File Associations
That's not working -- or maybe I don't know how to do it properly. When I go to KDE System Settings > File Associations, and type in ".csv" in the 'Find file type of filename pattern', I get text > csv in the 'Known Types' box. Clicking on 'csv' give me a list of 'Application Preference Order' in which "LibreOffice Calc" is listed first. Clicking on such a file in Dolphin does bring up Calc, but when opening an attachment in Thunderbird I get "Open with Kwrite (default)", not Calc. This only happened since upgrading LibreOffice and/or Thunderbird this weekend.

Note that different attachment types give different messages in Tbird. For example, opening an xls file gives "You have chosen to open <filename> which is a binary file." No options are given for selecting a program. LibreOffice calc is set as the OS/KDE default and opens in LibreOffice Calc from the file manager.

csv gives "You have chosen to open <filename> which is CSV document." I get the 'Open with' defaulting to Kate. KDE file manager opens this correctly.

xlsx gives the same "you have chosen" dialog, defaulting to Ark. KDE file manager opens this correctly.

The Thunderbird forum response is basically, "It's not Thunderbird's problem." (though since Dolphin opens all these correctly, I'm skeptical of that resonse)

What else can I try? This is getting urgent!

Last edited by mfoley; 10-11-2017 at 12:42 AM.
 
Old 10-11-2017, 05:08 AM   #4
sysfce2
Member
 
Registered: Jul 2009
Distribution: Slackware
Posts: 101

Rep: Reputation: 40
What is set in Thunderbird's Edit➤Preferences➤Attachments? You may want to delete/modify the ones that aren't working. If you delete them they go back to the original defaults.

When you put in choose, you'll probably have to type in ‘/usr/X11/bin/libreoffice’ if it's not already an option.

Last edited by sysfce2; 10-11-2017 at 05:11 AM.
 
Old 10-11-2017, 05:19 AM   #5
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,837

Rep: Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892
thunderbird uses xdg-open to open file types: you can have a look here for a simple way to use xdg-mime to setup libreoffice-calc.desktop as the default application to open the file type text/csv

https://wiki.archlinux.org/index.php...ions#xdg-utils

Quote:
Originally Posted by mfoley View Post
This is getting urgent!
please, don't say this...

Last edited by ponce; 10-11-2017 at 05:20 AM.
 
Old 10-11-2017, 02:19 PM   #6
mfoley
Senior Member
 
Registered: Oct 2008
Posts: 1,061

Original Poster
Rep: Reputation: 98
So far I've tried restoring to a previous version of Thunderbird. That didn't help. I'm afraid I don't really know what to do with the information in the archlinux wiki. In following through that link, I have lots of things defined in /usr/share/mime/packages/libreoffice5.4.xml. I see no entries referring to csv, excel or xls in /usr/share/applications/mimeinfo.cache. In ~/.config/mimeapps.list I have:
Code:
[Default Applications]
x-scheme-handler/http=userapp-Firefox-BHZS7Y.desktop
x-scheme-handler/https=userapp-Firefox-BHZS7Y.desktop
x-scheme-handler/ftp=userapp-Firefox-BHZS7Y.desktop
x-scheme-handler/chrome=userapp-Firefox-BHZS7Y.desktop
text/html=userapp-Firefox-BHZS7Y.desktop
application/x-extension-htm=userapp-Firefox-BHZS7Y.desktop
application/x-extension-html=userapp-Firefox-BHZS7Y.desktop
application/x-extension-shtml=userapp-Firefox-BHZS7Y.desktop
application/xhtml+xml=userapp-Firefox-BHZS7Y.desktop
application/x-extension-xhtml=userapp-Firefox-BHZS7Y.desktop
application/x-extension-xht=userapp-Firefox-BHZS7Y.desktop
x-scheme-handler/mailto=userapp-Thunderbird-46HR7Y.desktop
message/rfc822=userapp-Thunderbird-46HR7Y.desktop

[Added Associations]
x-scheme-handler/http=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
x-scheme-handler/https=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
x-scheme-handler/ftp=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
x-scheme-handler/chrome=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
text/html=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
application/x-extension-htm=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
application/x-extension-html=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
application/x-extension-shtml=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
application/xhtml+xml=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
application/x-extension-xhtml=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
application/x-extension-xht=userapp-Firefox-9AAL2Y.desktop;userapp-Firefox-BHZS7Y.desktop;
x-scheme-handler/mailto=userapp-Thunderbird-A9PY3Y.desktop;userapp-Thunderbird-46HR7Y.desktop;
message/rfc822=userapp-Thunderbird-A9PY3Y.desktop;userapp-Thunderbird-46HR7Y.desktop;
This is not very meaningful to me.

In any case, I don't this the problem is with the OS or KDE. Dolphin opens these MSOffice files just fine with LibreOffice. I suspect Thunderbird. in Edit > Preferences > Attachments > Incoming, I have nothing in "Content Type". I don't know if there ever was, but there is not now. Thunderbird is apparently NOT using the OS defaults. The Windows version of Thunderbird does have lots of stuff on this tab: "Content Type" = Adobe Acrobat Document, "Action" "Use Foxit Reader", etc.

Again, I have no idea why these associations disappeared, but if I could add new "Content Type" to Thunderbird I might make some progress.
 
Old 10-11-2017, 02:44 PM   #7
ponce
Senior Member
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 3,837

Rep: Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892Reputation: 1892
following what's written in the archlinux wiki
Code:
# change the default application for a MIME type
$ xdg-mime default feh.desktop image/jpeg
and what I wrote above, I was able to change the default helper application for file of the mimetype text/csv to libreoffice-calc issuing in a shell just this command
Code:
xdg-mime default libreoffice-calc.desktop text/csv
then I opened thunderbird, clicked on a csv file attachment and it opened with libreoffice-calc.
if you want to query the existing association you can launch the command
Code:
xdg-mime query default text/csv
 
3 members found this post helpful.
Old 10-12-2017, 08:03 PM   #8
mfoley
Senior Member
 
Registered: Oct 2008
Posts: 1,061

Original Poster
Rep: Reputation: 98
Ponce: Thanks. I'm starting to get the idea of using xdg-mime:
Code:
$ xdg-mime query filetype joe.xls       # This tells you the mime-type for this kind of file.
application/vnd.ms-excel

$ xdg-mime query default application/vnd.ms-excel    # This tells you the .desktop/application used to open this type
libreoffice-calc.desktop
I did have trouble with setting the default: `xdg-mime default libreoffice-calc.desktop text/csv`. I couldn't change from the incorrect (at the time) setting. There may have been more afoot, however.

In the end, I solved the problem, which was basically an inability to build the SlackBuilds binary or source LibreOffice packages. See this thread https://www.linuxquestions.org/quest...in-4175615245/ for detail. I finally solved the problem by installing alien bob's LibreOffice from his repo (see same link). Not only did that download an install in about 5 minutes (versus the 10 hour source build or the 1/2 hour binary build), but it worked. All mime-types are working correctly and I can now open attachments in thunderbird.
 
  


Reply

Tags
attachment, thunderbird


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't open attachments in Thunderbird Stevetgn Linux - Software 9 07-12-2011 09:02 PM
Gwenview will not open Thunderbird attachments qajaq Linux - Software 0 01-12-2009 09:55 AM
Inconsistent handling of attachments in Thunderbird statguy Slackware 12 01-11-2009 11:06 AM
Attachments don't open in Thunderbird BroX Slackware 2 06-20-2005 02:43 AM
thunderbird crashes while opening some mails with attachments srmeena Linux - Software 0 10-03-2004 03:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration