Launching google-chrome from terminal

Hi All,

I have a BBB with an LCD3 cape. I’m using Angstrom (May 27) and lighttpd as a web server. I would like to launch google-chrome at startup. The script I’m using is has one simple command:

google-chrome http://localhost:1234 --kiosk

The problem is that the only way I can get it to actually launch is if I execute the script from a terminal window (either directly on the LCD or using VNC). If I call this via ssh or from a startup script in /etc/init.d I get the following error:

(chrome:680): Gtk-WARNING **: cannot open display:
root@beaglebone:~# [682:682:0100/] write: Broken pipe

I have done a bunch of searching on this, and the standard workaround is to set DISPLAY=:0.0, but that doesn’t work on BBB/Angstrom.

Does anyone know of a way to achieve this?


Nothing. The terminal just displays the Gtk-WARNING message, then I press enter to get back to the root@beaglebone prompt. (After your post, I validated that there are no chrome processes running.)

Hadn’t thought of starting chrome during desktop startup, I’ll take a look at that.