Commit 94cb328f authored by azubieta's avatar azubieta
Browse files

Merge branch 'development' into 'master'

Development

See merge request !3
parents a407218f a5a4495a
Pipeline #619 passed with stage
in 1 minute and 40 seconds
## AppImage
build:neon-user-lts-deb:
image: kdeneon/plasma:user-lts
stage: build
......
# Plasma AppImage Integration
Provide a set of extensions for the Plasma desktop Environment to enhance the AppImage related user experience.
Features:
- "Add to Launcher", "Remove from Launcher" and "Update" File Item Actions
- Update progress get notified using a KJob
- File Metadata Extractor. Includes the application name, links, license and description.
- Launch assistant to skip the give execution permission step before running an AppImage
**Notice that this software is under active development and it's not suitable for production yet.**
## Build
**Dependencies**
- cmake
- gcc (>=4.8)
- KF5::XmlGui
- KF5::I18n
- KF5::KIO
- KF5::TextWidgets
- KF5::Notifications
- KF5::FileMetaData
- Qt5::Core
- Qt5::Widgets
- Qt5::Network
- Qt5::DBus
```bash
mkdir build; cd build
cmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix` ..
make -j`nproc`
sudo make install
```
// libraries
#include <KLocalizedString>
#include <QDBusPendingCallWatcher>
// local
#include "RemoveJob.h"
......
// libraries
#include <QFile>
#include <QDebug>
#include <QDBusPendingReply>
#include <KLocalizedString>
#include <KNotification>
#include <QTimer>
......
// libraries
#include <QIcon>
#include <QAction>
#include <QDBusPendingReply>
#include <KPluginFactory>
#include <KPluginLoader>
#include <KLocalizedString>
......
......@@ -5,6 +5,7 @@
#include <QJsonDocument>
#include <QDebug>
#include <KFileMetaData/Properties>
#include <KF5/kconfig_version.h>
// local
#include "AppImageExtractor.h"
......@@ -47,15 +48,16 @@ void KFileMetaData::AppImageExtractor::extract(ExtractionResult* result) {
if (!nameValue.isEmpty())
result->add(Property::Title, nameValue);
// Property::Description is not supported until KF5 5.53.0
// Property::Description and Property::License are not supported until KF5 5.53.0
#if (QT_VERSION_CHECK(KCONFIG_VERSION_MAJOR, KCONFIG_VERSION_MINOR, KCONFIG_VERSION_PATCH) >= QT_VERSION_CHECK(5, 53, 0))
QString summary = root.value("summary").toString();
if (!summary.isEmpty())
result->add(Property::Description, summary);
QString license = root.value("license").toString();
if (!license.isEmpty())
result->add(Property::License, license);
#endif
QJsonValue links = root.value("links");
QJsonObject linksOjbect = links.toObject();;
......
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