Changed: Install shorcuts in Applications instead of /Applications

--HG--
branch : develop
feature/pipeline-tools
kervala 8 years ago
parent 43736cf523
commit 999fd9d3aa

@ -307,7 +307,16 @@ QString CConfigFile::getDesktopDirectory() const
QString CConfigFile::getMenuDirectory() const
{
return QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation) + "/" + QApplication::applicationName();
QString applicationLocation;
#ifdef O_OS_MAC
// QStandardPaths::ApplicationsLocation returns read-only location so fix it, will be installed in ~/Applications
applicationLocation = QStandardPaths::writableLocation(QStandardPaths::HomeLocation) + "/Applications";
#else
applicationLocation = QStandardPaths::writableLocation(QStandardPaths::ApplicationsLocation);
#endif
return applicationLocation + "/" + QApplication::applicationName();
}
bool CConfigFile::has64bitsOS()

Loading…
Cancel
Save