点击 HWP 文档直接在 LibreOffice 中查看的方法

如果您尚未安装 Dalkom HWP 过滤器,请参考以下链接进行安装。
https://nimfsoft.art/zh/blog/2016/05/15/dalkom-2016-05-15-libreoffice-hwp-extension-released/

安装 Dalkom HWP 过滤器后,当您点击 HWP 文件时,LibreOffice 内置的 MIZI HWP 过滤器会优先运行,导致 HWP 文档无法正确显示。
以下是解决方法。
请将以下内容保存为文件 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

然后执行以下命令:

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

之后,在文件管理器中右键点击 HWP 文档,
选择“属性”->“打开方式 (Open With)”选项卡,然后选择“LibreOffice Writer with Dalkom”并将其设置为默认。

[图,已删除]

现在您可以在 Nautilus 文件管理器中点击 HWP 文档,直接用 LibreOffice 查看了。
writer-with-dalkom.desktop 文件的许可证与 Dalkom 项目不同,需要审查,因此目前未包含在 Dalkom 项目中。
愿大家在 Linux 上使用愉快,生活幸福。
谢谢。