mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-27 02:50:53 +00:00
Changed: Install shorcuts in Applications instead of /Applications
This commit is contained in:
parent
f11cc79b02
commit
dd0f1ab72b
1 changed files with 10 additions and 1 deletions
|
@ -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…
Reference in a new issue