diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9743c93cd75925d51dc0288434fe8401909b355a..ab12640eee93ab6d68996e276090a82afee99596 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,3 @@ -## AppImage build:neon-user-lts-deb: image: kdeneon/plasma:user-lts stage: build diff --git a/README.md b/README.md new file mode 100644 index 0000000000000000000000000000000000000000..4654897b460b9f42cec81465a8fd099b7c9be57e --- /dev/null +++ b/README.md @@ -0,0 +1,35 @@ +# 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 + +``` diff --git a/src/bin/RemoveJob.cpp b/src/bin/RemoveJob.cpp index 6a057494529313f2899eaa53ad2da918c5511394..04268f046960ac88eb7002d86d0856f9a9cc610a 100644 --- a/src/bin/RemoveJob.cpp +++ b/src/bin/RemoveJob.cpp @@ -1,6 +1,5 @@ // libraries #include -#include // local #include "RemoveJob.h" diff --git a/src/bin/UpdateJob.cpp b/src/bin/UpdateJob.cpp index a67f01582f6e9b05cc316bb75ed0c215e36d52fb..c3d26f24b8b0577cf857b59ee377a664ba536aa3 100644 --- a/src/bin/UpdateJob.cpp +++ b/src/bin/UpdateJob.cpp @@ -1,7 +1,6 @@ // libraries #include #include -#include #include #include #include diff --git a/src/fileitem-actions/AppImageFileItemActions.cpp b/src/fileitem-actions/AppImageFileItemActions.cpp index fe6e38b0b7bebfefec62be2785ddaff8f29c2b35..492a47664035a0a2b6d9dab016f68e2394bfdc82 100644 --- a/src/fileitem-actions/AppImageFileItemActions.cpp +++ b/src/fileitem-actions/AppImageFileItemActions.cpp @@ -1,7 +1,6 @@ // libraries #include #include -#include #include #include #include diff --git a/src/metadata-extractor/AppImageExtractor.cpp b/src/metadata-extractor/AppImageExtractor.cpp index 56a95d53cf278c5efc82f741ad11d8fa121d5b3a..6491a2b9c6c9af60818d5d783382c1b8d007233d 100644 --- a/src/metadata-extractor/AppImageExtractor.cpp +++ b/src/metadata-extractor/AppImageExtractor.cpp @@ -5,6 +5,7 @@ #include #include #include +#include // 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();;