From cefc8cb3e57c96c30a57cd9db1076ac2734d2450 Mon Sep 17 00:00:00 2001 From: Robert Griebl Date: Tue, 6 Feb 2024 19:32:50 +0100 Subject: Examples: check if the server command is valid in package-installation This is only the case, if the example is started via the generated .bat/.sh wrapper. Change-Id: I9f9ea0c54547c5be2a37ad3683755399e053ea1f Reviewed-by: Bernd Weimer (cherry picked from commit 4fa3b3c4dffb7b9cb2e6634cc5b78de483c1160e) Reviewed-by: Qt Cherry-pick Bot --- .../applicationmanager/package-installation/system-ui/main.qml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/applicationmanager/package-installation/system-ui/main.qml b/examples/applicationmanager/package-installation/system-ui/main.qml index 03e60ff0..672b8a38 100644 --- a/examples/applicationmanager/package-installation/system-ui/main.qml +++ b/examples/applicationmanager/package-installation/system-ui/main.qml @@ -40,9 +40,13 @@ ApplicationWindow { } Component.onCompleted: { - console.info("\n\n", "You can start an appman-package-server instance like this:", - "\n\n", " ", ApplicationManager.systemProperties.serverBinary, "--dd", - ApplicationManager.systemProperties.serverBaseDir, "\n\n") + if (ApplicationManager.systemProperties.serverBinary + && ApplicationManager.systemProperties.serverBaseDir) { + console.info("\n\n", "You can start an appman-package-server instance like this:", + "\n\n", " ", ApplicationManager.systemProperties.serverBinary, "--dd", + ApplicationManager.systemProperties.serverBaseDir, + "\n\n") + } } } -- cgit v1.2.3