---
title: "kchmviewer-\"failed to load the chm file\""
author: "andyao"
date: "2008-07-21T23:03:11Z"
tags: ["F#", "Qt"]
slug: "kchmviewer-failed-to-load-the-chm-file"
draft: false
lastmod: "2008-07-21T23:03:11Z"
id: 217379
url: "https://andyao.iteye.com/blog/217379"
---

sudo vi /usr/share/applications/kchmviewer.desktop

[Desktop Entry]
Categories=Qt;KDE;Utility;
Encoding=UTF-8
Type=Application
Exec=kchmviewer %U
Icon=kchmviewer.png
Comment=
Terminal=0
Name=KchmViewer
Comment=A viewer of CHM (MS-Help) files
MimeType=application/chm

找到Exec=kchmviewer %U 这行

将 %U 改成 %f 或 去掉 %U。 