Read DESKTOPINTEGRATION variable instead of TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION

Since it's widely used (by AppImages, for instance)
This commit is contained in:
Ilya Fedin 2021-02-15 17:22:44 +04:00 committed by John Preston
parent 8ec60e0321
commit 7977331d8b
1 changed files with 2 additions and 2 deletions

View File

@ -1063,8 +1063,8 @@ void finish() {
}
void InstallLauncher(bool force) {
static const auto DisabledByEnv = qEnvironmentVariableIsSet(
"TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION");
static const auto DisabledByEnv = !qEnvironmentVariableIsEmpty(
"DESKTOPINTEGRATION");
// don't update desktop file for alpha version or if updater is disabled
if ((cAlphaVersion() || Core::UpdaterDisabled() || DisabledByEnv)