diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac @@ -840,6 +840,7 @@ fltk/Makefile doc/Makefile Makefile +qt/org.gnupg.pinentry-qt.desktop ]) AC_OUTPUT diff --git a/qt/Makefile.am b/qt/Makefile.am --- a/qt/Makefile.am +++ b/qt/Makefile.am @@ -77,3 +77,6 @@ pinentryrc.cpp: pinentryrc.qrc $(RCC5) `test -f '$<' || echo '$(srcdir)/'`$< -o $@ + +desktopdir = $(datadir)/applications +desktop_DATA = org.gnupg.pinentry-qt.desktop diff --git a/qt/main.cpp b/qt/main.cpp --- a/qt/main.cpp +++ b/qt/main.cpp @@ -420,6 +420,7 @@ Q_ASSERT (new_argc); app = new QApplication(new_argc, new_argv); app->setWindowIcon(QIcon(QLatin1String(":/icons/document-encrypt.png"))); + app->setDesktopFileName(QStringLiteral("org.gnupg.pinentry-qt")); (void) new KeyboardFocusIndication{app}; } diff --git a/qt/org.gnupg.pinentry-qt.desktop.in b/qt/org.gnupg.pinentry-qt.desktop.in new file mode 100644 --- /dev/null +++ b/qt/org.gnupg.pinentry-qt.desktop.in @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Pinentry +Type=Application +Categories=Qt;Utility; +Exec=@prefix@/bin/pinentry-qt +NoDisplay=true +Icon=document-encrypt +GenericName=Utility for entering GnuPG secrets