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 if (!QString::fromStdString(app->appId().package).isEmpty()) {
20 appIds << QString::fromStdString(app->appId().package) + QStringLiteral("_") + QString::fromStdString(app->appId().appname);
22 appIds << QString::fromStdString(app->appId().appname);
25 } catch(std::runtime_error &e) {
26 qWarning() << "ubuntu-all-launch threw an exception listing apps:" << e.what();
32UalWrapper::AppInfo UalWrapper::getApplicationInfo(const QString &appId)
37 AppID ualAppId = AppID::find(appId.toStdString());
38 if (ualAppId.empty()) {
39 qWarning() << "Empty ualAppId result for" << appId;
43 std::shared_ptr<Application> ualApp;
44 ualApp = Application::create(ualAppId, Registry::getDefault());
46 info.name = QString::fromStdString(ualApp->info()->name());
47 info.icon = QString::fromStdString(ualApp->info()->iconPath());
49 } catch(std::runtime_error &e) {
50 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