From abfbf29ab69564dd01116589f7e04f187f5db509 Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Mon, 17 Oct 2016 04:36:32 +0900
Subject: [PATCH] Fix condition

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

diff --git a/src/handlers/xdgurl.cpp b/src/handlers/xdgurl.cpp
index 8b96d29..32eee42 100644
--- a/src/handlers/xdgurl.cpp
+++ b/src/handlers/xdgurl.cpp
@@ -193,9 +193,9 @@ 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"
+    else if (type == "bin" || type == "appimage"
              && Utility::Package::installProgram(temporaryFile.fileName(), path)) {
-        result["message"] = QString("The Appimage has been installed into " + destination);
+        result["message"] = QString("The program 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