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

View file

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