Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
azubieta
plasma-appimage-integration
Commits
94cb328f
Commit
94cb328f
authored
Jul 17, 2019
by
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
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
94cb328f
## AppImage
build:neon-user-lts-deb:
image
:
kdeneon/plasma:user-lts
stage
:
build
...
...
README.md
0 → 100644
View file @
94cb328f
# 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
```
src/bin/RemoveJob.cpp
View file @
94cb328f
// libraries
#include
<KLocalizedString>
#include
<QDBusPendingCallWatcher>
// local
#include
"RemoveJob.h"
...
...
src/bin/UpdateJob.cpp
View file @
94cb328f
// libraries
#include
<QFile>
#include
<QDebug>
#include
<QDBusPendingReply>
#include
<KLocalizedString>
#include
<KNotification>
#include
<QTimer>
...
...
src/fileitem-actions/AppImageFileItemActions.cpp
View file @
94cb328f
// libraries
#include
<QIcon>
#include
<QAction>
#include
<QDBusPendingReply>
#include
<KPluginFactory>
#include
<KPluginLoader>
#include
<KLocalizedString>
...
...
src/metadata-extractor/AppImageExtractor.cpp
View file @
94cb328f
...
...
@@ -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
();;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment