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

Qt painted content goes lost

qt d paint erase

I am writing an info-screen program. I created a full-screen widget and draw contents onto it.

Socket server not responding when in thread

python multithreading sockets qgis

I'm trying to set up a simple socket server in a qgis plugin. The ultimate goal is to communicate between qgis and matlab.

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.