blob: 39f3781bbca5c6e5f81f3a0fa3325f042fff929e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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
|