Discussion:
Libreoffice document can't open by mailcap entry
Marcelo Laia
2018-01-09 20:09:02 UTC
Permalink
Hi,

I have the follow entry in mailcap:

application/vnd.oasis.opendocument.text; libreoffice '%s'; edit=libreoffice '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document"; nametemplate=%s.odt

So, I attach a document and select it. I chose enter key to see there content.
After a upgrade in my Debian system the file isant showed anymore.

Someone could reproduce it and suggest a workaround?

Thanks
--
Marcelo
David Woodfall
2018-01-10 02:05:09 UTC
Permalink
Post by Marcelo Laia
Hi,
application/vnd.oasis.opendocument.text; libreoffice '%s'; edit=libreoffice '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document"; nametemplate=%s.odt
So, I attach a document and select it. I chose enter key to see there content.
After a upgrade in my Debian system the file isant showed anymore.
Someone could reproduce it and suggest a workaround?
Thanks
--
Marcelo
What does mutt display the mimetype as?
Marcelo Laia
2018-01-10 11:55:12 UTC
Permalink
Post by David Woodfall
What does mutt display the mimetype as?
I found the problem! It was in the file name.

File named "Assunto 27 - FORMULA.odt" dosen't open, but, file named as "Assunto27-FORMULA.odt" showed up in libreoffice.

I hope thies could help someone.

Thanks.
--
Marcelo
Jason
2018-01-10 15:30:09 UTC
Permalink
Post by Marcelo Laia
Post by David Woodfall
What does mutt display the mimetype as?
I found the problem! It was in the file name.
File named "Assunto 27 - FORMULA.odt" dosen't open, but, file named as "Assunto27-FORMULA.odt" showed up in libreoffice.
I hope thies could help someone.
Thanks.
For file names with spaces, you could try changing nametemplate=%s.odt
to nametemplate='%s'.odt (notice quotation marks) in the mailcap entry:

application/vnd.oasis.opendocument.text; libreoffice '%s'; edit=libreoffice '%s'; test=test -n "$DISPLAY"; description="OpenDocument Text Document"; nametemplate='%s'.odt
--
Jason
Loading...