From e1c257c3330057d7df70d3a1e92361afcdd06579 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sun, 13 Aug 2017 08:54:51 +0200 Subject: 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 --- wayland/democompositor/qml/LaunchButton.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wayland/democompositor/qml/LaunchButton.qml') 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) } -- cgit v1.2.3