Use /usr/share/ostinato-controller/themes on Linux

This is because the Ostinato packaging reccomendation is to use
ostinato-agent and ostinato-controller package names. The ostinato
package is a meta package containing the aforementioned sub-packages
This commit is contained in:
Srivats P 2022-07-29 20:54:14 +05:30
parent 06ad12777f
commit 97068b97e3
2 changed files with 3 additions and 3 deletions

View File

@ -49,13 +49,13 @@ ThemeManager::ThemeManager()
* non-install-dir/themes/
*
* /usr/[local]/bin/
* /usr/[local]/share/ostinato/themes/
* /usr/[local]/share/ostinato-controller/themes/
*
* /opt/ostinato/bin/
* /opt/ostinato/share/themes/
*/
if (themeDir_.contains(QRegularExpression("^/usr/.*/bin/")))
themeDir_.replace("/bin/", "/share/ostinato/");
themeDir_.replace("/bin/", "/share/ostinato-controller/");
else if (themeDir_.contains(QRegularExpression("^/opt/.*/bin/")))
themeDir_.replace("/bin/", "/share/");
#endif

View File

@ -14,7 +14,7 @@
macx {
shared.path = $${PREFIX}/Ostinato/Ostinato.app/Contents/SharedSupport/
} else: unix {
shared.path = $${PREFIX}/share/ostinato/
shared.path = $${PREFIX}/share/ostinato-controller/
} else {
shared.path = $${PREFIX}/bin
}