On 01/25/2017 08:09 AM, zeljko via Lazarus wrote:
On 01/25/2017 11:40 AM, Ed Murashie via Lazarus wrote:
I wrote a simple Lazarus program that displays a window and a button and
did the same thing using Glade which also uses Gtk+.
I am using a Beaglebone Black with the latest stock Debian Jessie image
which start a LxQt desktop program after it boots up.
When I run my program in the LxQt window or in a terminal window, it
runs fine.
Now I want my Lazarus or Glade/Gtk program to run when I boot and not
see the LxQt desktop program.
I have tried using the Crontab with @reboot command method and the
create a .service and use systemctl to register and start it.
No matter what I try I get “ Gtk-WARNING **: cannot open display: “.
This also happen on a Beaglebone Green and happens when I use Wheezy or
Jessie.
What am I doing wrong and how can I fix it?
You cannot run an X11 application without running X11 server. That's
wrong. If you need headless server gui app then you can use xfvb for
such purpose , or normally run X11 wm and then run your app there.
Or switch to a Raspberry Pi and use https://Ultibo.org ? Maybe Ultibo
can be ported later to Beaglebone?
Regards,
Paul
www.ControlPascal.com
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus