mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Read DESKTOPINTEGRATION variable instead of TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION
Since it's widely used (by AppImages, for instance)
This commit is contained in:
parent
8ec60e0321
commit
7977331d8b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue