# Run firefox --kiosk on my DPI screen just when page is correctly created

**URL:** <https://discourse.nodered.org/t/run-firefox-kiosk-on-my-dpi-screen-just-when-page-is-correctly-created/65227>\
**Category:** General\
**Created:** [17 July 2022 17:49 UTC](https://discourse.nodered.org/t/run-firefox-kiosk-on-my-dpi-screen-just-when-page-is-correctly-created/65227 "2022-07-17T17:49:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [17 July 2022 17:49 UTC](https://discourse.nodered.org/t/run-firefox-kiosk-on-my-dpi-screen-just-when-page-is-correctly-created/65227/1 "2022-07-17T17:49:45Z")

</div>

Hi all,

I would like run firefox --kiosk [http://127.0.0.1:1880/ui](http://127.0.0.1:1880/ui) on my screen just when page is correctly created by node-red service and not before, because running it on boot a page of unreachable page appears.

until now, following some tutorial I'm using lightdm service and I set in

/etc/lightdm/lightdm.conf-\> display-setup-script=/root/runFirefox.sh

where in runFirefox.sh I have

```auto
firefox --kiosk http://127.0.0.1:1880/ui

```

and I run node-red with a service

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [17 July 2022 18:47 UTC](https://discourse.nodered.org/t/run-firefox-kiosk-on-my-dpi-screen-just-when-page-is-correctly-created/65227/2 "2022-07-17T18:47:42Z")

</div>

Use a trigger node and an exec node together.

---

<div class="post-metadata">

**Author:** ![denissanga](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/denissanga/32/48346_2.png) [@denissanga](https://discourse.nodered.org/u/denissanga)\
**Post date:** [18 July 2022 03:44 UTC](https://discourse.nodered.org/t/run-firefox-kiosk-on-my-dpi-screen-just-when-page-is-correctly-created/65227/3 "2022-07-18T03:44:59Z")

</div>

Many thanks. I'm using Debian 11 and how can I detect if web page is ready?

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [18 July 2022 06:59 UTC](https://discourse.nodered.org/t/run-firefox-kiosk-on-my-dpi-screen-just-when-page-is-correctly-created/65227/4 "2022-07-18T06:59:54Z")

</div>

> [@denissanga](#):
>
> how can I detect if web page is ready?

With an ui\_control node. When any browser client connects or loses connection, changes tab, or expands or collapses a group this node will emit a `msg`

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [16 September 2022 07:00 UTC](https://discourse.nodered.org/t/run-firefox-kiosk-on-my-dpi-screen-just-when-page-is-correctly-created/65227/5 "2022-09-16T07:00:20Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
