Skip to content

Commit 6a5d236

Browse files
committed
Support multiple URLs defined in FF_OPEN_URL.
1 parent db4ef58 commit 6a5d236

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ the `-e` parameter in the format `<VARIABLE_NAME>=<VALUE>`.
132132
|`VNC_LISTENING_PORT`| Port used by the VNC server to serve the application's GUI. This port is internal to the container and typically does not need to be changed. By default, a container uses the default bridge network, requiring each internal port to be mapped to an external port (using the `-p` or `--publish` argument). If another network type is used, changing this port may prevent conflicts with other services/containers. **NOTE**: A value of `-1` disables VNC access to the application's GUI. | `5900` |
133133
|`VNC_PASSWORD`| Password required to connect to the application's GUI. See the [VNC Password](#vnc-password) section for details. | (no value) |
134134
|`ENABLE_CJK_FONT`| When set to `1`, installs the open-source font `WenQuanYi Zen Hei`, supporting a wide range of Chinese/Japanese/Korean characters. | `0` |
135-
|`FF_OPEN_URL`| The URL to open when Firefox starts. | (no value) |
135+
|`FF_OPEN_URL`| The URL to open when Firefox starts. Multiple URLs can be opened by separating them with the pipe character (`|`). | (no value) |
136136
|`FF_KIOSK`| Set to `1` to enable kiosk mode. This mode launches Firefox in a very restricted and limited mode best suitable for public areas or customer-facing displays. | `0` |
137137
|`FF_CUSTOM_ARGS`| Custom argument(s) to pass when launching Firefox. | `0` |
138138

appdefs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,10 +473,14 @@ container:
473473
environment_variables:
474474
- name: FF_OPEN_URL
475475
description: >-
476-
The URL to open when {{ app.friendly_name }} starts.
476+
The URL to open when {{ app.friendly_name }} starts. Multiple URLs can
477+
be opened by separating them with the pipe character (`|`).
477478
type: public
478479
unraid_template:
479480
title: "Open URL"
481+
description: >-
482+
The URL to open when {{ app.friendly_name }} starts. Multiple URLs can
483+
be opened by separating them with the pipe character ('|').
480484
display: advanced
481485
required: false
482486
mask: false

rootfs/etc/services.d/app/params

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ if is-bool-val-true "${FF_KIOSK:-0}"; then
1515
echo "--kiosk"
1616
fi
1717

18-
# URL to open.
19-
# NOTE: This should be the last argument.
20-
if [ -n "${FF_OPEN_URL:-}" ]; then
21-
echo "$FF_OPEN_URL"
22-
fi
23-
2418
# Custom arguments.
2519
if [ -n "${FF_CUSTOM_ARGS:-}" ]; then
2620
eval 'for word in '$FF_CUSTOM_ARGS'; do echo "$word"; done'
2721
fi
22+
23+
# URL to open.
24+
# NOTE: This should be the last argument.
25+
if [ -n "${FF_OPEN_URL:-}" ]; then
26+
echo "$FF_OPEN_URL" | tr '|' '\n'
27+
fi

0 commit comments

Comments
 (0)