flectra/addons/point_of_sale/tools/posbox/overwrite_after_init/etc/xdg/openbox/autostart
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

14 lines
326 B
Bash
Executable File

#!/bin/bash
xset s off
xset -dpms
export HOME=/tmp
DISPLAY_URL='http://localhost:8069/point_of_sale/display'
# wait until odoo is ready, otherwise you will have to plug a
# keyboard into the posbox just to refresh firefox
until wget -q "${DISPLAY_URL}" -O /dev/null ; do sleep 1 ; done
/usr/bin/firefox "${DISPLAY_URL}" &