TWL's Algorithms

Archive for October, 2016

Raspbian launch application with terminal on boot

To start a program automatically in a terminal upon boot, open the file /etc/xdg/lxsession/LXDE-pi/autostart then add this line as the second last line (must be above the screensaver command):

@lxterminal –command “/home/pi/opencv/a.out”

Next, access the desktop, open a terminal then run lxsession-edit

Uncheck LXPolKit

Click OK

Then reboot.