Commit d9d711ff authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Snap: make it possible to launch installed applications

parent 6ee19041
......@@ -24,6 +24,7 @@
#include <QProcess>
#include <QBuffer>
#include <QImageReader>
#include <QProcess>
SnapResource::SnapResource(QSharedPointer<QSnapdSnap> snap, AbstractResource::State state, SnapBackend* parent)
: AbstractResource(parent)
......@@ -167,7 +168,7 @@ void SnapResource::fetchScreenshots()
void SnapResource::invokeApplication() const
{
// QProcess::startDetached(m_snap->price());
QProcess::startDetached(QStringLiteral("snap"), {QStringLiteral("run"), packageName()});
}
bool SnapResource::isTechnical() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment