Bug 138787 - Add application/msword-template as MimeType for libreoffice-writer.desktop
Summary: Add application/msword-template as MimeType for libreoffice-writer.desktop
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.3.1 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: MSO-Formats
  Show dependency treegraph
 
Reported: 2020-12-09 20:36 UTC by Pacho Ramos
Modified: 2023-11-23 05:58 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
pharmaceuticals-template.dot (175.50 KB, application/wps-office.dot)
2020-12-09 20:36 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pacho Ramos 2020-12-09 20:36:09 UTC
Description:
I was wondering why libreoffice wasn't show in nautilus to open attached file even if it can open it when doing it manually. That is because its mime type is not listed in libreoffice-writer.desktop file:
$ mimetype pharmaceuticals-template.dot 
pharmaceuticals-template.dot: application/msword-template

Thanks a lot

Actual Results:
libreoffice is not offered to open attached .dot file

Expected Results:
It should be offered 


Reproducible: Always


User Profile Reset: No



Additional Info:
Running libreoffice-7.0.3.1 on Gentoo Linux and Gnome desktop
Comment 1 Pacho Ramos 2020-12-09 20:36:42 UTC
Created attachment 168016 [details]
pharmaceuticals-template.dot
Comment 2 Mike Kaganski 2020-12-10 07:43:23 UTC
The *possible* code pointers are

filter/source/config/fragments/types/writer_MS_Word_95_Vorlage.xcu
filter/source/config/fragments/types/writer_MS_Word_97_Vorlage.xcu

Still I don't know if we must change it. Although "application/msword-template" is used in shared-mime-info [1], it's not a proper IANA-registered media type [2].

[1] https://bugs.freedesktop.org/show_bug.cgi?id=19682
[2] https://www.iana.org/assignments/media-types/media-types.xhtml
Comment 3 Pacho Ramos 2020-12-11 16:52:57 UTC
As a side note... currently the MS Word (though Crossover) and WPS-Office are setting that Mimetype... then both are currently being offered while libreoffice don't
Comment 4 Dieter 2022-02-06 17:22:46 UTC
Hello Pacho, a new major release of LibreOffice is available since this bug was reported. Could you please try to reproduce it with the latest version of LibreOffice from https://www.libreoffice.org/download/libreoffice-fresh/ ?
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the latest version.
Comment 5 Pacho Ramos 2022-03-13 18:01:21 UTC
It is the same with 7.2.5.2
Comment 6 Mike Kaganski 2022-03-13 21:11:30 UTC Comment hidden (off-topic)
Comment 7 Dieter 2023-08-30 18:53:04 UTC
Tested with

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 34d32740d89876c3d4fd2743a07d6e2578601683
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

When I try to open attacment 168016 a dialog pops up that asks me, which program I use for opening the file. If I choose LO I can open the file without any problem. 
So it's only a problem in Linux or has this probem been resolved. Could you please retest, Pacho?
=> NEEDINFO
Comment 8 Pacho Ramos 2023-09-10 08:29:15 UTC
The bug was about libreoffice not being offered to open dot files due to the needed mimetype being missing in the .desktop file (that is used on linux desktop for that)

Now it seems to work... probably due to mime application/vnd.ms-word.template.macroEnabled.12 being specified now :/