How to view an HWP document directly in LibreOffice by clicking it

If you have not installed the Dalkom HWP filter, please refer to the following link to install it.
https://nimfsoft.art/blog/2016/05/15/dalkom-2016-05-15-libreoffice-hwp-extension-released/

After installing the Dalkom HWP filter, when you click an HWP file, the MIZI HWP filter, which is built into LibreOffice, runs first, preventing the HWP document from displaying correctly.
Here is how to solve this problem.
Save the content below with the filename writer-with-dalkom.desktop.

# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# This file incorporates work covered by the following license notice:
#
#   Licensed to the Apache Software Foundation (ASF) under one or more
#   contributor license agreements. See the NOTICE file distributed
#   with this work for additional information regarding copyright
#   ownership. The ASF licenses this file to you under the Apache
#   License, Version 2.0 (the "License"); you may not use this file
#   except in compliance with the License. You may obtain a copy of
#   the License at http://www.apache.org/licenses/LICENSE-2.0 .
#

#
# Modified for Dalkom
#
[Desktop Entry]
Version=1.0
Terminal=false
Icon=libreoffice-writer
Type=Application
Categories=Office;WordProcessor;
Exec=libreoffice --writer --infilter="dalkom_hwp" %U
MimeType=application/x-hwp;
Name=LibreOffice Writer with Dalkom
StartupNotify=true
X-GIO-NoFuse=true
Keywords=Hwp Document;hwp;
InitialPreference=5
StartupWMClass=libreoffice-writer
X-KDE-Protocols=file,http,smb,ftp,webdav

Actions=NewDocument;
[Desktop Action NewDocument]
Name=New Document
Exec=libreoffice --writer

After that, run the following command:

sudo cp writer-with-dalkom.desktop /usr/share/applications

Then, in the file manager, right-click an HWP document.
Click on “Properties,” then the “Open With” tab, and select “LibreOffice Writer with Dalkom” to set it as the default.

[Image, deleted]

Now, you can click on an HWP document in the Nautilus file manager and view it in LibreOffice.
The writer-with-dalkom.desktop file is not currently included in the Dalkom project because its license is different and requires review.
Let’s live happily and enjoy our Linux life.
Thank you.