2 export -n QT_WAYLAND_SHELL_INTEGRATION
3 port=$(echo -n "$1" | sed 's,.*local.*:\([^/]*\)/.*,\1,')
4 token=$(echo -n "$1" | sed 's,.*token=,,')
5 export AFM_APP_INSTALL_DIR=$(mktemp -d)
6 cat << EOC > $AFM_APP_INSTALL_DIR/runxdg.toml
10 path = "/usr/bin/qt5/qmlscene"
13 "/usr/bin/web-runtime.qml"
16 /usr/bin/runxdg "$port" "$token"
17 rm -rf $AFM_APP_INSTALL_DIR