5#include <ubuntu-app-launch/registry.h>
6using namespace ubuntu::app_launch;
8UalWrapper::UalWrapper(QObject *parent):
14QStringList UalWrapper::installedApps()
18 for (const std::shared_ptr<Application> &app : Registry::installedApps()) {
19 appIds << QString::fromStdString(app->appId().package) + QStringLiteral("_") + QString::fromStdString(app->appId().appname);
21 } catch(std::runtime_error &e) {
22 qWarning() << "ubuntu-all-launch threw an exception listing apps:" << e.what();
28UalWrapper::AppInfo UalWrapper::getApplicationInfo(const QString &appId)
33 AppID ualAppId = AppID::find(appId.toStdString());
34 if (ualAppId.empty()) {
38 std::shared_ptr<Application> ualApp;
39 ualApp = Application::create(ualAppId, Registry::getDefault());
42 info.name = QString::fromStdString(ualApp->info()->name());
43 info.icon = QString::fromStdString(ualApp->info()->iconPath());
44 } catch(std::runtime_error &e) {
45 qWarning() << "ubuntu-app-launch threw an exception getting app info for appId:" << appId << ":" << e.what();
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