diff options
Diffstat (limited to 'homescreen/src')
-rw-r--r-- | homescreen/src/applicationmodel.cpp | 9 | ||||
-rw-r--r-- | homescreen/src/main.cpp | 11 |
2 files changed, 17 insertions, 3 deletions
diff --git a/homescreen/src/applicationmodel.cpp b/homescreen/src/applicationmodel.cpp index 417bc4c..c940149 100644 --- a/homescreen/src/applicationmodel.cpp +++ b/homescreen/src/applicationmodel.cpp @@ -54,10 +54,19 @@ ApplicationModel::Private::Private() { QString apps = afm_user_daemon_proxy->runnables(QStringLiteral("")); QJsonDocument japps = QJsonDocument::fromJson(apps.toUtf8()); + // disable apps which don't work with the compositor right now + QStringList notShow = { + "navigation@0.1" + , "phone@0.1" + , "controls@0.1" + , "poi@0.1" + , "mixer@0.1" + }; for (auto const &app : japps.array()) { QJsonObject const &jso = app.toObject(); auto const name = jso["name"].toString(); auto const id = jso["id"].toString(); + if (notShow.contains(id)) continue; auto const icon = get_icon_name(jso); this->data.append(AppInfo(icon, name, id)); qDebug() << "name:" << name << "icon:" << icon << "id:" << id; diff --git a/homescreen/src/main.cpp b/homescreen/src/main.cpp index 215e7c6..7eba5bb 100644 --- a/homescreen/src/main.cpp +++ b/homescreen/src/main.cpp @@ -52,7 +52,11 @@ void noOutput(QtMsgType, const QMessageLogContext &, const QString &) int main(int argc, char *argv[]) { - QGuiApplication a(argc, argv); + qputenv("QT_QPA_PLATFORM", "eglfs"); + qputenv("QT_QPA_EGLFS_INTEGRATION","eglfs_kms"); + qputenv("QT_QPA_EGLFS_KMS_CONFIG","/home/root/kmsconfig"); + + QGuiApplication app(argc, argv); QScopedPointer<org::AGL::afm::user, Cleanup> afm_user_daemon_proxy(new org::AGL::afm::user("org.AGL.afm.user", "/org/AGL/afm/user", @@ -72,7 +76,7 @@ int main(int argc, char *argv[]) QCommandLineOption quietOption(QStringList() << "q" << "quiet", QCoreApplication::translate("main", "Be quiet. No outputs.")); parser.addOption(quietOption); - parser.process(a); + parser.process(app); if (parser.isSet(quietOption)) { @@ -118,5 +122,6 @@ int main(int argc, char *argv[]) // Initalize PA client client->init(); - return a.exec(); + QObject::connect(&engine, &QQmlApplicationEngine::quit, &app, &QGuiApplication::quit); + return app.exec(); } |