summaryrefslogtreecommitdiffstats
path: root/meta-attic/recipes-graphics/web-runtime/web-runtime/web-runtime
diff options
context:
space:
mode:
Diffstat (limited to 'meta-attic/recipes-graphics/web-runtime/web-runtime/web-runtime')
-rwxr-xr-xmeta-attic/recipes-graphics/web-runtime/web-runtime/web-runtime18
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