https://bugs.kde.org/show_bug.cgi?id=388598

            Bug ID: 388598
           Summary: KIO-GDrive assigns the wrong mime type to .ods files
                    in src/gdrivehelper.cpp
           Product: kio-gdrive
           Version: 1.2.0
          Platform: Gentoo Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: elvis.angelac...@kde.org
          Reporter: martijn.schm...@gmail.com
  Target Milestone: ---

Hello,

KIO-GDrive appears to assign the mime type
"application/x-vnd.oasis.opendocument.spreadsheet" to .ods files on line 38 in
the following piece of code:

https://github.com/KDE/kio-gdrive/blob/master/src/gdrivehelper.cpp#L38

However, the correct mime type is
"application/vnd.oasis.opendocument.spreadsheet" and as a result I get
Dolphin's Choose Application dialog when I try to open one of the .ods files on
my GDrive using the KIO helper. The mime type which I have listed can be found
as a FAQ item on the Document Foundation wiki, as well as on Wikipedia:

https://wiki.documentfoundation.org/Faq/General/036
https://en.wikipedia.org/wiki/OpenDocument_technical_specification#Documents

I have made a local fork of the master branch on GitHub, after adjusting the
mime type and re-compiling KIO-GDrive the problem has been resolved:
LibreOffice Calc immediately opens the file without Dolphin prompting which
application I'd like to use.

Best regards,
Martijn

PS: the second thing isn't critical at all, but please note that the variable
VND_OASIS_OPENDOCUMENT_SPREADSHEED contains a typo, it should actually be
spelled as VND_OASIS_OPENDOCUMENT_SPREADSHEET ... if changes are made anyway,
we might as well tackle both at the same time. :-)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to