diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-04-23 19:10:43 +0200 |
---|---|---|
committer | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2020-04-23 19:10:43 +0200 |
commit | 873b57dfbd7f67a762a8300a60278764b911c893 (patch) | |
tree | 34c7c5b09b8021e9e4b1846d100081e9d5f71aa9 /meta-attic/recipes-graphics/web-runtime/web-runtime/web-runtime | |
parent | 992ef6afe1798ee24df3ccbbe8309e8de9f2c183 (diff) |
Cleanup post next mergesandbox/jsmoeller/cleanup
Signed-off-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Change-Id: Ieee834f43877f0d675b4a97eebfcde1683fb0cef
Diffstat (limited to 'meta-attic/recipes-graphics/web-runtime/web-runtime/web-runtime')
-rwxr-xr-x | meta-attic/recipes-graphics/web-runtime/web-runtime/web-runtime | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-attic/recipes-graphics/web-runtime/web-runtime/web-runtime b/meta-attic/recipes-graphics/web-runtime/web-runtime/web-runtime new file mode 100755 index 0000000..39f3781 --- /dev/null +++ b/meta-attic/recipes-graphics/web-runtime/web-runtime/web-runtime @@ -0,0 +1,18 @@ +#!/bin/bash +export -n QT_WAYLAND_SHELL_INTEGRATION +port=$(echo -n "$1" | sed 's,.*local.*:\([^/]*\)/.*,\1,') +token=$(echo -n "$1" | sed 's,.*token=,,') +export AFM_APP_INSTALL_DIR=$(mktemp -d) +cat << EOC > $AFM_APP_INSTALL_DIR/runxdg.toml +[application] +role = "WebBrowser" +method = "POSIX" +path = "/usr/bin/qt5/qmlscene" +params = [ + "$1", + "/usr/bin/web-runtime.qml" +] +EOC +export LD_PRELOAD=/usr/lib/libEGL.so +/usr/bin/runxdg "$port" "$token" +rm -rf $AFM_APP_INSTALL_DIR |