I have a Qt application, I have added it to
~/.config/openbox/autostart.sh like this:
(sleep 5 && /home/user/UI/UI) &
When I start Openbox from terminal, the Qt application opens as a unusable gray box. If I launch xterm on Openbox and then manually start the Qt application, it works fine. What am I doing wrong?