From: Marius Vlad Date: Mon, 13 Apr 2020 10:02:35 +0000 (+0300) Subject: sample/app: Allow to identify the application X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?p=apps%2Fonscreenapp.git;a=commitdiff_plain;h=2723deaa4c4537e33071b42167b5512693479e50 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 --- 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"));