Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
fix file permissions of interpreter on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
pathmann committed Jan 27, 2017
1 parent 0605539 commit ed15ff9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/pythonhost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ bool PythonHost::setupDirectories(QString &error) {
return false;
}

#ifdef Q_OS_UNIX
if (chmod(interpreterpath.toUtf8().data(), S_IRUSR | S_IWUSR | S_IWUSR | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH) == -1)
ts3logdispatcher::instance()->add(QObject::tr("Setting file permissions of the python interpreter failed, you may need to manually set chmod u+x to %1 (%2)").arg(interpreterpath).arg(errno), LogLevel_ERROR);
#endif

m_interpreter = Py_DecodeLocale(interpreterpath.toUtf8().data(), NULL);
if (!m_interpreter) {
error = QObject::tr("Error decoding interpreter path");
Expand Down

0 comments on commit ed15ff9

Please sign in to comment.