mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-25 08:28:22 -04:00
[plasmalnf] Wait longer for the tool to finish
This commit is contained in:
parent
1de2e94fd0
commit
71966b5330
1 changed files with 13 additions and 5 deletions
|
@ -75,13 +75,21 @@ PlasmaLnfPage::activated(const QString& name)
|
||||||
QProcess lnftool;
|
QProcess lnftool;
|
||||||
lnftool.start( m_lnfPath, {"--resetLayout", "--apply", name} );
|
lnftool.start( m_lnfPath, {"--resetLayout", "--apply", name} );
|
||||||
|
|
||||||
if ( lnftool.waitForStarted(1000) && lnftool.waitForFinished( 1000 ) && (lnftool.exitCode() == 0) && (lnftool.exitStatus() == QProcess::NormalExit ) )
|
if ( !lnftool.waitForStarted( 1000 ) )
|
||||||
; // OK
|
{
|
||||||
|
cDebug() << "WARNING: could not start look-and-feel" << m_lnfPath;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
if ( !lnftool.waitForFinished() )
|
||||||
|
{
|
||||||
|
cDebug() << "WARNING:" << m_lnfPath << "timed out.";
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( (lnftool.exitCode() == 0) && (lnftool.exitStatus() == QProcess::NormalExit ) )
|
||||||
|
emit plasmaThemeSelected( name );
|
||||||
else
|
else
|
||||||
cDebug() << "WARNING: could not apply look-and-feel" << name;
|
cDebug() << "WARNING: could not apply look-and-feel" << name;
|
||||||
|
|
||||||
|
|
||||||
emit plasmaThemeSelected( name );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue