[calamares] More info when Cala is already running

- If Calamares is already running, print some information
   about which instances there are so that it is possible
   to unstick them.
This commit is contained in:
Adriaan de Groot 2018-06-28 06:29:55 -04:00
parent 6f39db4752
commit f118fd73bc

View File

@ -108,7 +108,14 @@ main( int argc, char* argv[] )
returnCode = a.exec(); returnCode = a.exec();
} }
else else
{
auto instancelist = guard.instances();
qDebug() << "Calamares is already running, shutting down."; qDebug() << "Calamares is already running, shutting down.";
if ( instancelist.count() > 0 )
qDebug() << "Other running Calamares instances:";
for ( const auto& i : instancelist )
qDebug() << " " << i.isValid() << i.pid() << i.arguments();
}
return returnCode; return returnCode;
} }