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]

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


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

How to stop a running mysql query

java mysql applet-servlet

How do I stop a running mysql query programmatically?

Runtime Exception for jars with same names

android class jar package

I am developing a android application where I used two external jar files(libraries) and both the jar files have a same package name and same classes but the methods inside the classes are slightly

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.