5#include <ubuntu-app-launch/registry.h>
6using namespace ubuntu::app_launch;
8UalWrapper::UalWrapper(QObject *parent):
14QStringList UalWrapper::installedApps()
17 Registry::installedApps();
18 for (std::shared_ptr<Application> app : Registry::installedApps()) {
19 appIds << QString::fromStdString(app->appId().package) + "_" + QString::fromStdString(app->appId().appname);
24UalWrapper::AppInfo UalWrapper::getApplicationInfo(const QString &appId)
28 AppID ualAppId = AppID::find(Registry::getDefault(), appId.toStdString());
29 if (ualAppId.empty()) {
33 std::shared_ptr<Application> ualApp;
36 ualApp = Application::create(ualAppId, Registry::getDefault());
38 catch (std::runtime_error &e)
40 qWarning() << "Couldn't find application info for" << appId << "-" << e.what();
45 info.name = QString::fromStdString(ualApp->info()->name());
46 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