@@ -330,7 +330,7 @@ Item {
330330 tap(emergencyButton)
331331
332332 tryCompare(greeter, "shown", false);
333− ApplicationManager.startApplication("gallery-app", ApplicationManager.NoFlag)
333+ startApplication("gallery-app");
334334 tryCompare(greeter, "shown", true);
335335 }
336336
@@ -468,7 +468,7 @@ Item {
468468 tryCompare(greeter, "shown", false);
469469 tryCompare(LightDM.Greeter, "active", false);
470470
471− ApplicationManager.startApplication("dialer-app", ApplicationManager.NoFlag);
471+ startApplication("dialer-app");
472472 tryCompare(ApplicationManager, "focusedApplicationId", "dialer-app");
473473 callManager.foregroundCall = phoneCall;
474474
@@ -603,7 +603,7 @@ Item {
603603 var coverPage = findChild(shell, "coverPage");
604604 var lockscreen = findChild(shell, "lockscreen");
605605 var launcher = findChild(shell, "launcherPanel");
606− var galleryApp = ApplicationManager.startApplication("gallery-app");
606+ var galleryApp = startApplication("gallery-app").application;
607607 tryCompare(shell, "mainApp", galleryApp);
608608
609609 // Show greeter