diff --git a/snapcraft.yaml b/snapcraft.yaml
index 167098a..851505a 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -17,6 +17,7 @@ plugs:
parts:
qtapp2:
+ after: [desktop-ubuntu-app-platform]
plugin: qmake
qt-version: qt5
source: .
@@ -39,13 +40,7 @@ parts:
snap:
- "$includedfiles"
- launcher:
- plugin: dump
- source: .
- organize:
- launcher: bin/qtapp2.run
-
apps:
timostestapp3:
- command: bin/qtapp2.run
+ command: desktop-launch qmlscene --desktop_file_hint=unity8 "$SNAP/ubuntu-app-platform/usr/lib/x86_64-linux-gnu/qt5/bin/qmlscene" "$SNAP/qtapp2/Main.qml"
plugs: ['platform', 'home', 'unity7', 'opengl']