From c72d7294bdf91be354629bcaff415e1f6848bf38 Mon Sep 17 00:00:00 2001 From: kervala Date: Wed, 28 Sep 2016 23:32:24 +0200 Subject: [PATCH] Fixed: Desktop files need to be executable --- code/ryzom/tools/client/ryzom_installer/src/utils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/utils.cpp b/code/ryzom/tools/client/ryzom_installer/src/utils.cpp index ac03abe90..3408e28bc 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/utils.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/utils.cpp @@ -238,6 +238,9 @@ bool createLink(const QString &link, const QString &name, const QString &executa file.write(data.toUtf8()); file.close(); + // set executable flags to .desktop + QFile::setPermissions(path, QFile::permissions(path) | QFile::ExeGroup | QFile::ExeUser | QFile::ExeOther); + return true; }