From 6e77c7aabf1553be69a7bfb9cac7711cd6848b62 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Wed, 9 Feb 2022 18:18:02 +0200 Subject: [PATCH] kman: associate with application/x-troff-man MIME type Signed-off-by: Ivailo Monev --- kman/kman.desktop | 2 +- kman/kmanmainwindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kman/kman.desktop b/kman/kman.desktop index d30049a6..ae465089 100644 --- a/kman/kman.desktop +++ b/kman/kman.desktop @@ -7,4 +7,4 @@ Exec=kman --icon '%i' --caption '%c' %U Terminal=false Type=Application Categories=Qt;KDE;System;Viewer;Documentation; -MimeType=text/troff; +MimeType=text/troff;application/x-troff-man; diff --git a/kman/kmanmainwindow.cpp b/kman/kmanmainwindow.cpp index 091f97df..a498b3c1 100644 --- a/kman/kmanmainwindow.cpp +++ b/kman/kmanmainwindow.cpp @@ -242,7 +242,7 @@ void KManMainWindow::changePath(const QString &path) { } void KManMainWindow::slotOpenAction() { - const QString path = KFileDialog::getOpenFileName(KUrl(), QLatin1String("text/troff"), this, i18n("Manual page path")); + const QString path = KFileDialog::getOpenFileName(KUrl(), QLatin1String("text/troff application/x-troff-man"), this, i18n("Manual page path")); if (!path.isEmpty()) { changePath(path); }