I have a GTK application that runs perfectly when run from the desktop or a terminal window.
I created a myprog.desktop file in ~/.config/autostart:
[Desktop Entry]
Type=Application
Name=MyName
Path=~/...blah../MyApp
Exec=./myapp
NoDisplay=false
Hidden=false
X-GNOME-Autostart-enabled=true
This creates an icon which I can double-click, and the code runs. However it does not run when the window manager starts, as intended. I get the error
XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
in ~/.xsession-errors.old
Any ideas what is happening here? Platform is Beaglebone Black, revision C (Debian).