Show a warning to the use in case of "slow" startup (i.e. when buggy a/v is slowing down the startup procedure)
This commit is contained in:
parent
5ac65284ff
commit
3ad816f660
@ -1237,6 +1237,26 @@
|
||||
<source>Exit Program</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please refer to the %1 document for details and solutions!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Slow Startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Discard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Don't Show Again</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Urgent Update</source>
|
||||
<translation type="unfinished"></translation>
|
||||
@ -1297,14 +1317,6 @@
|
||||
<source>AAC Support Disabled</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Discard</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Don't Show Again</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>LameXP has detected that the WMA File Decoder component is not currently installed on your system.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
|
@ -1594,6 +1594,18 @@
|
||||
<source>Please use LameXP's Cue Sheet wizard for importing Cue Sheet files.</source>
|
||||
<translation>Bitte benutzen Sie zum Importieren von Cuesheets den Cuesheet Assistenten.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source>
|
||||
<translation>Anscheinend wird der Programmstart von LameXP durch eine fehlerhafte Antiviren-Software verlangsamt.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please refer to the %1 document for details and solutions!</source>
|
||||
<translation>Bitte beachten Sie die Hinweise und Lösungsvorschläge im %1 Dokument!</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Slow Startup</source>
|
||||
<translation>Langsamer Programmstart</translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MetaInfo</name>
|
||||
|
@ -1593,6 +1593,18 @@
|
||||
<source>Please use LameXP's Cue Sheet wizard for importing Cue Sheet files.</source>
|
||||
<translation>Por favor, use el asistente de imporatción de archivos Cue sheet de LameXP.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please refer to the %1 document for details and solutions!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Slow Startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MetaInfo</name>
|
||||
|
@ -1603,6 +1603,18 @@ Ouvrir le dossier récursivement...</translation>
|
||||
<source>Please use LameXP's Cue Sheet wizard for importing Cue Sheet files.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please refer to the %1 document for details and solutions!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Slow Startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MetaInfo</name>
|
||||
|
@ -1594,6 +1594,18 @@
|
||||
<source>Please use LameXP's Cue Sheet wizard for importing Cue Sheet files.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please refer to the %1 document for details and solutions!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Slow Startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MetaInfo</name>
|
||||
|
@ -1593,6 +1593,18 @@
|
||||
<source>Please use LameXP's Cue Sheet wizard for importing Cue Sheet files.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please refer to the %1 document for details and solutions!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Slow Startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MetaInfo</name>
|
||||
|
@ -1599,6 +1599,18 @@
|
||||
<translatorcomment>пиздец бред</translatorcomment>
|
||||
<translation type="unfinished">Пожалуйста используйте Мастер импорта Cue файлов для импорта Cue файлов.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please refer to the %1 document for details and solutions!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Slow Startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MetaInfo</name>
|
||||
|
@ -1593,6 +1593,18 @@
|
||||
<source>LameXP will <i>not</i> check for Beta (pre-release) updates from now on.</source>
|
||||
<translation>Віднині LameXP <i>не</i> буде перевіряти наявність оновлень бета-версій.</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>It seems that a bogus anti-virus software is slowing down the startup of LameXP.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Please refer to the %1 document for details and solutions!</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>Slow Startup</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
</context>
|
||||
<context>
|
||||
<name>MetaInfo</name>
|
||||
|
Binary file not shown.
@ -30,7 +30,7 @@
|
||||
#define VER_LAMEXP_MINOR_LO 3
|
||||
#define VER_LAMEXP_TYPE Alpha
|
||||
#define VER_LAMEXP_PATCH 1
|
||||
#define VER_LAMEXP_BUILD 583
|
||||
#define VER_LAMEXP_BUILD 584
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
// Tools versions
|
||||
|
@ -925,6 +925,18 @@ void MainWindow::windowShown(void)
|
||||
}
|
||||
}
|
||||
|
||||
//Slow startup indicator
|
||||
if(m_settings->slowStartup() && m_settings->antivirNotificationsEnabled())
|
||||
{
|
||||
QString message;
|
||||
message += QString("<nobr>%1</nobr><br>").arg(tr("It seems that a bogus anti-virus software is slowing down the startup of LameXP."));
|
||||
message += QString("<nobr>%1</nobr><br>").arg(tr("Please refer to the %1 document for details and solutions!").arg("<a href=\"http://lamexp.git.sourceforge.net/git/gitweb.cgi?p=lamexp/lamexp;a=blob_plain;f=doc/FAQ.html;hb=HEAD#df406578\">F.A.Q.</a>"));
|
||||
if(QMessageBox::warning(this, tr("Slow Startup"), message, tr("Discard"), tr("Don't Show Again")) == 1)
|
||||
{
|
||||
m_settings->antivirNotificationsEnabled(false);
|
||||
}
|
||||
}
|
||||
|
||||
//Update reminder
|
||||
if(QDate::currentDate() >= lamexp_version_date().addYears(1))
|
||||
{
|
||||
|
@ -129,6 +129,7 @@ static int lamexp_main(int argc, char* argv[])
|
||||
//Show splash screen
|
||||
InitializationThread *poInitializationThread = new InitializationThread(&cpuFeatures);
|
||||
SplashScreen::showSplash(poInitializationThread);
|
||||
settingsModel->slowStartup(poInitializationThread->getSlowIndicator());
|
||||
LAMEXP_DELETE(poInitializationThread);
|
||||
|
||||
//Validate settings
|
||||
|
@ -83,6 +83,7 @@ LAMEXP_MAKE_ID(autoUpdateCheckBeta, "AutoUpdate/CheckForBetaVersions");
|
||||
LAMEXP_MAKE_ID(soundsEnabled, "Flags/EnableSounds");
|
||||
LAMEXP_MAKE_ID(neroAacNotificationsEnabled, "Flags/EnableNeroAacNotifications");
|
||||
LAMEXP_MAKE_ID(wmaDecoderNotificationsEnabled, "Flags/EnableWmaDecoderNotifications");
|
||||
LAMEXP_MAKE_ID(antivirNotificationsEnabled, "Flags/EnableAntivirusNotifications");
|
||||
LAMEXP_MAKE_ID(dropBoxWidgetEnabled, "Flags/EnableDropBoxWidget");
|
||||
LAMEXP_MAKE_ID(shellIntegrationEnabled, "Flags/EnableShellIntegration");
|
||||
LAMEXP_MAKE_ID(currentLanguage, "Localization/Language");
|
||||
@ -111,6 +112,7 @@ LAMEXP_MAKE_ID(metaInfoPosition, "MetaInformation/PlaylistPosition");
|
||||
LAMEXP_MAKE_ID(maximumInstances, "AdvancedOptions/Threading/MaximumInstances");
|
||||
LAMEXP_MAKE_ID(customTempPath, "AdvancedOptions/TempDirectory/CustomPath");
|
||||
LAMEXP_MAKE_ID(customTempPathEnabled, "AdvancedOptions/TempDirectory/UseCustomPath");
|
||||
LAMEXP_MAKE_ID(slowStartup, "Flags/SlowStartupDetected");
|
||||
|
||||
//LUT
|
||||
const int SettingsModel::mp3Bitrates[15] = {32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, -1};
|
||||
@ -271,6 +273,7 @@ LAMEXP_MAKE_OPTION_B(autoUpdateCheckBeta, false)
|
||||
LAMEXP_MAKE_OPTION_B(soundsEnabled, true)
|
||||
LAMEXP_MAKE_OPTION_B(neroAacNotificationsEnabled, true)
|
||||
LAMEXP_MAKE_OPTION_B(wmaDecoderNotificationsEnabled, true)
|
||||
LAMEXP_MAKE_OPTION_B(antivirNotificationsEnabled, true)
|
||||
LAMEXP_MAKE_OPTION_B(dropBoxWidgetEnabled, true)
|
||||
LAMEXP_MAKE_OPTION_B(shellIntegrationEnabled, !lamexp_portable_mode())
|
||||
LAMEXP_MAKE_OPTION_S(currentLanguage, defaultLanguage())
|
||||
@ -299,3 +302,4 @@ LAMEXP_MAKE_OPTION_U(metaInfoPosition, UINT_MAX);
|
||||
LAMEXP_MAKE_OPTION_U(maximumInstances, 0);
|
||||
LAMEXP_MAKE_OPTION_S(customTempPath, QDesktopServices::storageLocation(QDesktopServices::TempLocation));
|
||||
LAMEXP_MAKE_OPTION_B(customTempPathEnabled, false);
|
||||
LAMEXP_MAKE_OPTION_B(slowStartup, false);
|
||||
|
@ -93,6 +93,7 @@ public:
|
||||
LAMEXP_MAKE_OPTION_B(soundsEnabled);
|
||||
LAMEXP_MAKE_OPTION_B(neroAacNotificationsEnabled);
|
||||
LAMEXP_MAKE_OPTION_B(wmaDecoderNotificationsEnabled);
|
||||
LAMEXP_MAKE_OPTION_B(antivirNotificationsEnabled);
|
||||
LAMEXP_MAKE_OPTION_B(dropBoxWidgetEnabled);
|
||||
LAMEXP_MAKE_OPTION_B(shellIntegrationEnabled);
|
||||
LAMEXP_MAKE_OPTION_S(currentLanguage);
|
||||
@ -121,6 +122,7 @@ public:
|
||||
LAMEXP_MAKE_OPTION_U(maximumInstances);
|
||||
LAMEXP_MAKE_OPTION_S(customTempPath);
|
||||
LAMEXP_MAKE_OPTION_B(customTempPathEnabled);
|
||||
LAMEXP_MAKE_OPTION_B(slowStartup);
|
||||
|
||||
//Misc
|
||||
void validate(void);
|
||||
|
@ -83,6 +83,8 @@ g_lamexp_tools[] =
|
||||
{NULL, NULL, NULL, NULL}
|
||||
};
|
||||
|
||||
static const double g_allowedExtractDelay = 10.0;
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
// Constructor
|
||||
////////////////////////////////////////////////////////////
|
||||
@ -91,6 +93,7 @@ InitializationThread::InitializationThread(const lamexp_cpu_t *cpuFeatures)
|
||||
{
|
||||
m_bSuccess = false;
|
||||
memset(&m_cpuFeatures, 0, sizeof(lamexp_cpu_t));
|
||||
m_slowIndicator = false;
|
||||
|
||||
if(cpuFeatures)
|
||||
{
|
||||
@ -208,8 +211,9 @@ void InitializationThread::run()
|
||||
|
||||
//Check delay
|
||||
double delayExtract = static_cast<double>(timer.elapsed()) / 1000.0;
|
||||
if(delayExtract > 8.0)
|
||||
if(delayExtract > g_allowedExtractDelay)
|
||||
{
|
||||
m_slowIndicator = true;
|
||||
qWarning("Extracting tools took %.3f seconds -> probably slow realtime virus scanner.", delayExtract);
|
||||
qWarning("Please report performance problems to your anti-virus developer !!!\n");
|
||||
}
|
||||
|
@ -36,6 +36,7 @@ public:
|
||||
InitializationThread(const lamexp_cpu_t *cpuFeatures);
|
||||
void run();
|
||||
bool getSuccess(void) { return !isRunning() && m_bSuccess; }
|
||||
bool getSlowIndicator(void) { return m_slowIndicator; }
|
||||
|
||||
private:
|
||||
void delay(void);
|
||||
@ -43,6 +44,7 @@ private:
|
||||
void initNeroAac(void);
|
||||
void initWmaDec(void);
|
||||
|
||||
lamexp_cpu_t m_cpuFeatures;
|
||||
bool m_bSuccess;
|
||||
lamexp_cpu_t m_cpuFeatures;
|
||||
bool m_slowIndicator;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user