Autostart of GTK application failing

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).

Answers


Running the code from .xsessionrc would appear to work nicely. I run it as /usr/bin/sudo ./myapp - just to be sure!


Need Your Help

Is it possible to create an app iOS 4 - iOS 7 compatible with Xcode 5.0.2 on Mavericks?

ios xcode ios4 osx-mavericks

I need to develop an app who support iOS 4 - iOS 7, is it possible to do it on XCode 5.0.2 on Mavericks?