summaryrefslogtreecommitdiffstats
path: root/meta-agl-demo/recipes-graphics/web-runtime/web-runtime/web-runtime
diff options
context:
space:
mode:
authorToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp>2020-03-30 09:24:26 +0900
committerToshikazuOhiwa <toshikazu_ohiwa@mail.toyota.co.jp>2020-03-30 09:24:26 +0900
commit5b80bfd7bffd4c20d80b7c70a7130529e9a755dd (patch)
treeb4bb18dcd1487dbf1ea8127e5671b7bb2eded033 /meta-agl-demo/recipes-graphics/web-runtime/web-runtime/web-runtime
parent706ad73eb02caf8532deaf5d38995bd258725cb8 (diff)
agl-basesystem
Diffstat (limited to 'meta-agl-demo/recipes-graphics/web-runtime/web-runtime/web-runtime')
-rwxr-xr-xmeta-agl-demo/recipes-graphics/web-runtime/web-runtime/web-runtime18
1 files changed, 18 insertions, 0 deletions
diff --git a/meta-agl-demo/recipes-graphics/web-runtime/web-runtime/web-runtime b/meta-agl-demo/recipes-graphics/web-runtime/web-runtime/web-runtime
new file mode 100755
index 00000000..39f3781b
--- /dev/null
+++ b/meta-agl-demo/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