The code has not changed.
Here is that same snippet of code from Sigil 0.8.x timeframe:
Code:
if (QFile::exists(filePath) && QDir(application).exists()) {
QStringList arguments = QStringList() << "-a" << application << filePath;
return QProcess::startDetached("/usr/bin/open", arguments);
}