Hi! I want to automatically start a desktop app in Weston after boot. I’ve read the Toradex article and tried both the systemctl and graphical approaches, but without success.
#!/bin/sh
if test -z "$XDG_RUNTIME_DIR"; then
export XDG_RUNTIME_DIR=/run/user/`id -u`
if ! test -d "$XDG_RUNTIME_DIR"; then
mkdir --parents $XDG_RUNTIME_DIR
chmod 0700 $XDG_RUNTIME_DIR
fi
fi
# wait for weston
while [ ! -e $XDG_RUNTIME_DIR/wayland-0 ] ; do sleep 0.1; done
sleep 1
/path/to/the/application &
We are working on updating the article as well. Meanwhile, I hope this helps!
Thank you. Unfortunately, as you know from this post, I was forced to move to X11 because the Weston virtual keyboard is not compatible with the Gtk framework that I am using for the Python app. Specifically, it is not displayed when accessing a text input box.
Welcome to the Toradex Community. Could you please open a new post about it so that other users could also profit from the possible outcomes? In the meantime you could have a look on topics like this: QtVirtualKeyboard not shown - #7 by DarKMooN