https://bugs.documentfoundation.org/show_bug.cgi?id=63913

--- Comment #6 from Maxime de Roucy <maxime.dero...@linagora.com> ---
The problem comes from the Windows registry (so from the LO installer). But it
can't be solve without breaking another feature.

I did my tests with an ods and an odt file.

For what I understood only the "New" command is allowed when you select both
the files because odt and ods have the same "New" command :
* "HK_CLASSE_ROOT\.odt" point to "HK_CLASSE_ROOT\LibreOffice.WriterDocument.1"
where the "New" command is
"HK_CLASSE_ROOT\LibreOffice.WriterDocument.1\shell\new\command =
C:\Program…\soffice.exe -n %1"
* "HK_CLASSE_ROOT\.ods" point to "HK_CLASSE_ROOT\LibreOffice.CalcDocument.1"
where the "New" command is
"HK_CLASSE_ROOT\LibreOffice.CalcDocument.1\shell\new\command =
C:\Program…\soffice.exe -n %1"

They don't have the same "Open" command :
* "HK_CLASSE_ROOT\.odt" point to "HK_CLASSE_ROOT\LibreOffice.WriterDocument.1"
where the "Open" command is
"HK_CLASSE_ROOT\LibreOffice.WriterDocument.1\shell\new\command =
C:\Program…\swriter.exe -o %1"
* "HK_CLASSE_ROOT\.ods" point to "HK_CLASSE_ROOT\LibreOffice.CalcDocument.1"
where the "New" command is
"HK_CLASSE_ROOT\LibreOffice.CalcDocument.1\shell\new\command =
C:\Program…\scalc.exe -o %1"

So when you select both file and hit Enter, the "New" command is selected (as
it's the only one available) and LO register the file as Untitled1.odt and
Untitled2.ods.

A simple workaround should be to change
"HK_CLASSE_ROOT\LibreOffice.WriterDocument.1\shell\new\command" and
"HK_CLASSE_ROOT\LibreOffice.CalcDocument.1\shell\new\command" to
"C:\Program…\soffice.exe -o %1".

It works but the icon for odt and calc documents on the desktop (not on the
file explorer) became the LibreOffice one (not the Writer or Calc anymore). I
believe it's a Windows bug since the icon should depend on the DefaultIcon
registry key for desktop and the file explorer :
https://msdn.microsoft.com/en-us/library/windows/desktop/cc144175%28v=vs.85%29.aspx

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to