[Lazarus] Running an app on boot

Ed Murashie emurashie at proengineered.com
Wed Jan 25 11:40:28 CET 2017


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?

 

Thanks,

Newbie Ed

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20170125/db001204/attachment.html>


More information about the Lazarus mailing list