Add AppImage support to Linux builds (#3688)

Add AppImage support
This commit is contained in:
Tres Finocchiaro
2017-10-16 15:09:30 -04:00
committed by GitHub
parent c051e9bf34
commit 3e90e37352
14 changed files with 1795 additions and 33 deletions

View File

@@ -503,7 +503,16 @@ void ConfigManager::loadConfigFile( const QString & configFile )
#elif defined(LMMS_BUILD_APPLE)
m_stkDir = qApp->applicationDirPath() + "/../share/stk/rawwaves/";
#else
m_stkDir = "/usr/share/stk/rawwaves/";
if ( qApp->applicationDirPath().startsWith("/tmp/") )
{
// Assume AppImage bundle
m_stkDir = qApp->applicationDirPath() + "/../share/stk/rawwaves/";
}
else
{
// Fallback to system provided location
m_stkDir = "/usr/share/stk/rawwaves/";
}
#endif
}
#endif