From 6b38b7b79f41c33044be358c2da6f304d03278fb Mon Sep 17 00:00:00 2001
From: Olivier Langella <olivier.langella@u-psud.fr>
Date: Wed, 31 Oct 2018 23:56:31 +0100
Subject: [PATCH] guide the user in tandem binary installation

---
 src/utils/utils.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/src/utils/utils.cpp b/src/utils/utils.cpp
index 0a317315..25e82c8b 100644
--- a/src/utils/utils.cpp
+++ b/src/utils/utils.cpp
@@ -263,7 +263,16 @@ Utils::checkXtandemVersion(const QString &tandem_bin_path)
     {
       // dir.path() returns the unique directory path
       throw pappso::PappsoException(
-        QObject::tr("Please check permissions on !Tandem software found at %1.")
+        QObject::tr("Please check permissions on X!Tandem software found at %1 "
+                    "(file not readable).")
+          .arg(tandem_exe.absoluteFilePath()));
+    }
+  if(!tandem_exe.isExecutable())
+    {
+      // dir.path() returns the unique directory path
+      throw pappso::PappsoException(
+        QObject::tr("Please check permissions on X!Tandem software found at %1 "
+                    "(file not executable).")
           .arg(tandem_exe.absoluteFilePath()));
     }
 
-- 
GitLab