Permalink
Browse files

Make sure the AppCafe starts applications with "startDetached" instea…

…d of "execute". This should make sure that the new application instance is completely independent of the AppCafe process. Also make sure that warning boxes are displayed with "show" instead of "exec", that way the main GUI can also continue running in the background (great for multiple app scheduled for install but one runs into a problem).
  • Loading branch information...
Ken Moore
Ken Moore committed Mar 17, 2014
1 parent f0d1327 commit 78469f9d1e58cb65483e49725c56eef5e332ef0d
Showing with 2 additions and 2 deletions.
  1. +2 −2 src-qt4/pc-softwaremanager/mainUI.cpp
@@ -664,7 +664,7 @@ void MainUI::slotStartApp(QAction* act){
QString desktopfile = act->whatsThis();
QString cmd = "xdg-open "+desktopfile;
//Startup the command externally
- QProcess::execute(cmd);
+ QProcess::startDetached(cmd);
}
void MainUI::slotUpdateSelectedPBI(){
@@ -1232,7 +1232,7 @@ void MainUI::slotDisplayError(QString title,QString message,QStringList log){
dlg->setWindowTitle(title);
dlg->setText(message);
dlg->setDetailedText(log.join("\n"));
- dlg->exec();
+ dlg->show();
}
void MainUI::slotDisplayStats(){

0 comments on commit 78469f9

Please sign in to comment.