From e7c2f8ddcabf1ee3eae990fef2c5cef51c92a4ae Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Sat, 15 Oct 2016 07:14:03 +0900
Subject: [PATCH] Fix argument

---
 src/utility/package.cpp | 4 ++--
 src/utility/package.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/utility/package.cpp b/src/utility/package.cpp
index 375ac1e..933acae 100644
--- a/src/utility/package.cpp
+++ b/src/utility/package.cpp
@@ -101,12 +101,12 @@ bool Package::uninstallPlasmapkg(const QString &path, const QString &type)
     return false;
 }
 
-bool Package::installAppimage(const QString &path, const QString &targetDir)
+bool Package::installAppimage(const QString &path, const QString &targetPath)
 {
     QProcess process;
     QString program = "install";
     QStringList arguments;
-    arguments << "-D" << "-m" << "755" << path << targetDir;
+    arguments << "-D" << "-m" << "755" << path << targetPath;
 
     process.start(program, arguments);
 
diff --git a/src/utility/package.h b/src/utility/package.h
index debd48a..1479730 100644
--- a/src/utility/package.h
+++ b/src/utility/package.h
@@ -15,7 +15,7 @@ public:
     static bool uncompressArchive(const QString &path, const QString &targetDir);
     static bool installPlasmapkg(const QString &path, const QString &type = "plasmoid");
     static bool uninstallPlasmapkg(const QString &path, const QString &type = "plasmoid");
-    static bool installAppimage(const QString &path, const QString &targetDir);
+    static bool installAppimage(const QString &path, const QString &targetPath);
 };
 
 } // namespace Utility
-- 
GitLab