diff --git a/kaptan.py b/kaptan.py index 6fe8c83..ab9c70b 100644 --- a/kaptan.py +++ b/kaptan.py @@ -67,8 +67,10 @@ def optionsAccepted(self, id): self.page(5).execute() - QProcess().startDetached("killall plasmashell") - QProcess().startDetached("kstart5 plasmashell") + p = QProcess() + p.startDetached("killall plasmashell") + p.waitForStarted(2000) + p.startDetached("kstart5 plasmashell") if id == self.sumId: self.setButtonText(QWizard.NextButton, self.tr("Apply Settings"))