5#include <ubuntu-app-launch/registry.h>
6using namespace ubuntu::app_launch;
8UalWrapper::UalWrapper(QObject *parent):
14QStringList UalWrapper::installedApps()
17 for (const std::shared_ptr<Application> &app : Registry::installedApps()) {
18 appIds << QString::fromStdString(app->appId().package) + QStringLiteral("_") + QString::fromStdString(app->appId().appname);
23UalWrapper::AppInfo UalWrapper::getApplicationInfo(const QString &appId)
27 AppID ualAppId = AppID::find(appId.toStdString());
28 if (ualAppId.empty()) {
32 std::shared_ptr<Application> ualApp;
35 ualApp = Application::create(ualAppId, Registry::getDefault());
37 catch (std::runtime_error &e)
39 qWarning() << "Couldn't find application info for" << appId << "-" << e.what();
44 info.name = QString::fromStdString(ualApp->info()->name());
45 info.icon = QString::fromStdString(ualApp->info()->iconPath());
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list