Commit e722be77 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Install app metadata for plasmoidviewer and plasmaengineexplorer

Summary: Improves integration at runtime and with appstream-based installers.

Reviewers: sebas, mart, broulik, ngraham

Subscribers: ngraham, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D10920
parent eac231c1
......@@ -24,4 +24,7 @@ target_link_libraries(plasmaengineexplorer
install(TARGETS plasmaengineexplorer ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.plasmaengineexplorer.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.plasmaengineexplorer.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
kdoctools_create_manpage (man-plasmaengineexplorer.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop">
<id>org.kde.plasmaengineexplorer</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>Plasma Engine Explorer</name>
<summary>Explorer for the data published by Plasma DataEngines</summary>
<description>
<p>Plasma Engine Explorer is a graphical tool allowing developers to test Plasma DataEngines without writing a Plasma applet.</p>
</description>
<launchable type="desktop-id">org.kde.plasmaengineexplorer.desktop</launchable>
<url type="bugtracker">https://bugs.kde.org/enter_bug.cgi?format=guided&amp;product=Plasma%20SDK&amp;component=engineexplorer</url>
<project_group>KDE</project_group>
<provides>
<binary>plasmaengineexplorer</binary>
</provides>
</component>
[Desktop Entry]
Terminal=false
Name=Plasma Engine Explorer
Comment=Explorer for the data published by Plasma DataEngines
Exec=plasmaengineexplorer
Icon=plasma
Type=Application
Categories=Qt;KDE;Development;IDE;
......@@ -20,6 +20,9 @@ target_link_libraries(plasmoidviewer
install(TARGETS plasmoidviewer ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
install(PROGRAMS org.kde.plasmoidviewer.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES org.kde.plasmoidviewer.appdata.xml DESTINATION ${KDE_INSTALL_METAINFODIR})
kdoctools_create_manpage (man-plasmoidviewer.1.docbook 1 INSTALL_DESTINATION ${KDE_INSTALL_MANDIR})
#qml
......
......@@ -48,8 +48,10 @@ int main(int argc, char **argv)
KLocalizedString::setApplicationDomain("plasmoidviewer");
app.setApplicationName(QStringLiteral("plasmoidviewer"));
app.setApplicationDisplayName(i18n("Plasmoidviewer"));
app.setOrganizationDomain(QStringLiteral("kde.org"));
app.setApplicationVersion(PROJECT_VERSION);
app.setDesktopFileName(QStringLiteral("org.kde.plasmoidviewer"));
QApplication::setWindowIcon(QIcon::fromTheme(QStringLiteral("plasma"), app.windowIcon()));
QCommandLineParser parser;
......
<?xml version="1.0" encoding="utf-8"?>
<component type="desktop">
<id>org.kde.plasmoidviewer</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+</project_license>
<name>Plasmoidviewer</name>
<summary>Testing tool for Plasma applets</summary>
<description>
<p>Plasmoidviewer is a graphical tool allowing developers to test Plasma applets.</p>
</description>
<url type="bugtracker">https://bugs.kde.org/enter_bug.cgi?format=guided&amp;product=Plasma%20SDK&amp;component=plasmoidviewer</url>
<project_group>KDE</project_group>
<provides>
<binary>plasmoidviewer</binary>
</provides>
</component>
[Desktop Entry]
Terminal=false
Name=Plasmoidviewer
Comment=Testing tool for Plasma applets
Exec=plasmoidviewer
Icon=plasma
Type=Application
Categories=Qt;KDE;Development;IDE;
NoDisplay=True
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment