From 2723deaa4c4537e33071b42167b5512693479e50 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Mon, 13 Apr 2020 13:02:35 +0300 Subject: [PATCH] sample/app: Allow to identify the application While this doesn't seem necessary launcher will need the app_id set to switch to it later on. Signed-off-by: Marius Vlad --- sample/app/main.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sample/app/main.cpp b/sample/app/main.cpp index c47c869..f3bd99c 100644 --- a/sample/app/main.cpp +++ b/sample/app/main.cpp @@ -28,12 +28,14 @@ int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); - app.setApplicationName("onstestapp"); - app.setApplicationVersion(QStringLiteral("3.99.3")); - app.setOrganizationDomain(QStringLiteral("automotivelinux.org")); - app.setOrganizationName(QStringLiteral("AutomotiveGradeLinux")); - QQuickStyle::setStyle("AGL"); + //app.setApplicationName("onstestapp"); + //app.setApplicationVersion(QStringLiteral("3.99.3")); + //app.setOrganizationDomain(QStringLiteral("automotivelinux.org")); + //app.setOrganizationName(QStringLiteral("AutomotiveGradeLinux")); + + //QQuickStyle::setStyle("AGL"); + app.setDesktopFileName("onstestapp"); QCommandLineParser parser; parser.addPositionalArgument("port", app.translate("main", "port for binding")); -- 2.16.6