summaryrefslogtreecommitdiffstats
path: root/wayland/democompositor/qml/LaunchButton.qml
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2017-08-13 08:54:51 +0200
committerHolger Freyther <holger+qt@freyther.de>2017-09-12 06:16:43 +0000
commite1c257c3330057d7df70d3a1e92361afcdd06579 (patch)
tree35edb25fd5acfb9e93ee017142cacffcd6999e27 /wayland/democompositor/qml/LaunchButton.qml
parent5b64a6d44215a22ffa9a4d7b64b695ffe9dfa858 (diff)
democompositor: Move to start by AppEntry
The AppEntry contains the executable name and the $PATH to use. Store a copy of the AppEntry and pass it to the processlauncher. Change-Id: I15792cc7ce651beed2006841c100b31d3252d9d1 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'wayland/democompositor/qml/LaunchButton.qml')
-rw-r--r--wayland/democompositor/qml/LaunchButton.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/wayland/democompositor/qml/LaunchButton.qml b/wayland/democompositor/qml/LaunchButton.qml
index deb462c..2d3801a 100644
--- a/wayland/democompositor/qml/LaunchButton.qml
+++ b/wayland/democompositor/qml/LaunchButton.qml
@@ -51,11 +51,11 @@
import QtQuick 2.6
MyButton {
- property string executable
+ property var appEntry
text.text: "Uninitialized"
text.elide: Text.ElideRight
text.maximumLineCount: 1
iconSize: 32
- onTriggered: launcher.launch(executable)
+ onTriggered: launcher.launch(appEntry)
}