From d95bbeb3a39fd808beb8ec085414e88a842b317a Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Sat, 15 Oct 2016 07:32:13 +0900
Subject: [PATCH] Install Appimage

---
 src/handlers/xdgurl.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp
index 8391558..57446a8 100644
--- a/src/handlers/xdgurl.cpp
+++ b/src/handlers/xdgurl.cpp
@@ -190,6 +190,10 @@ void XdgUrl::_installDownloadedFile(QNetworkReply *reply)
              && Utility::Package::installPlasmapkg(temporaryFile.fileName(), "windowswitcher")) {
         result["message"] = QString("The KWin window switcher has been installed");
     }
+    else if (type == "appimages"
+             && Utility::Package::installAppimage(temporaryFile.fileName(), path)) {
+        result["message"] = QString("The Appimage has been installed into " + destination);
+    }
     else if (Utility::Package::uncompressArchive(temporaryFile.fileName(), destination)) {
         result["message"] = QString("The archive file has been uncompressed into " + destination);
     }
-- 
GitLab