Sophie

Sophie

distrib > Mageia > 9 > aarch64 > media > core-release-src > by-pkgid > aeef1bdbd3886f790da6bb0fa90f248d > files > 6

kchmviewer-8.0-2.mga9.src.rpm

diff --git a/packages/kchmviewer.desktop b/packages/kchmviewer.desktop
index a8aa169..fa7a120 100644
--- a/packages/kchmviewer.desktop
+++ b/packages/kchmviewer.desktop
@@ -6,5 +6,7 @@ Type=Application
 Exec=kchmviewer %f
 Icon=kchmviewer
 GenericName=CHM file viewer
+GenericName[fr]=Visionneuse de fichier CHM
 Comment=A viewer of CHM (MS-Help) files
-MimeType=application/chm;application/x-chm;application/vnd.ms-htmlhelp;application/epub+zip
+Comment[fr]=Une visionneuse de fichiers CHM (MS-Help)
+MimeType=application/chm;application/x-chm;application/vnd.ms-htmlhelp;application/epub+zip;
diff --git a/src/src.pro b/src/src.pro
index 7fe2f0d..2e933cd 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -40,7 +40,7 @@ SOURCES += config.cpp \
     textencodings.cpp \
     treeitem_toc.cpp \
     treeitem_index.cpp
-TARGET = ../bin/kchmviewer
+TARGET = kchmviewer
 CONFIG += threads \
     warn_on \
     precompile_header \
@@ -130,3 +130,12 @@ greaterThan(QT_MAJOR_VERSION, 4) {
     SOURCES += viewwindow_webkit.cpp dataprovider_qwebkit.cpp
     HEADERS += dataprovider_qwebkit.h viewwindow_webkit.h
 }
+
+## This is here so the makefile has a 'make install' target
+target.path = /usr/bin/
+
+desktop_file.files = ../packages/kchmviewer.desktop
+desktop_file.path = /usr/share/applications/
+
+INSTALLS += target \
+            desktop_file