How to launch Epiphany browser fullscreen on startup with Raspbian

First, in order to use the xte command, install xautomation:

# apt-get install xautomation

Then, create a shell script:

# vim /home/pi/startup.sh

And add in startup.sh file

#!/bin/bash

sleep 5
sudo -u pi epiphany-browser -a --profile ~/.config http://localhost &
xte 'sleep 15' 'key F11' -x:0

Finally edit autostart

# vim /home/pi/.config/lxsession/LXDE-pi/autostart

And add at the end of autostart file

@/home/pi/startup.sh

Raphaël has written 45 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>