3

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

Julian Gold
  • 1,246
  • 2
  • 19
  • 40

1 Answers1

1

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

Julian Gold
  • 1,246
  • 2
  • 19
  • 40
  • don't use `sudo` *just to be sure*. use it only if you need super-user priviliges; if you don't know, don't use it. – umläute May 18 '15 at 07:54