Added environment variable to specify custom arguments to pass to Firefox.

This commit is contained in:
Jocelyn Le Sage 2024-06-30 22:25:39 -04:00
parent 1e6d352a54
commit ebe461ade1
3 changed files with 17 additions and 1 deletions

View File

@ -90,7 +90,8 @@ RUN \
# Set public environment variables.
ENV \
FF_OPEN_URL= \
FF_KIOSK=0
FF_KIOSK=0 \
FF_CUSTOM_ARGS=
# Metadata.
LABEL \

View File

@ -395,6 +395,16 @@ container:
customer-facing displays.
type: public
default: 0
- name: FF_CUSTOM_ARGS
description: >-
Custom argument(s) to pass when launching {{ app.friendly_name }}.
type: public
default: 0
unraid_template:
title: "Custom Arguments"
display: advanced
required: false
mask: false
# Volumes
volumes: []

View File

@ -20,3 +20,8 @@ fi
if [ -n "${FF_OPEN_URL:-}" ]; then
echo "$FF_OPEN_URL"
fi
# Custom arguments.
if [ -n "${FF_CUSTOM_ARGS:-}" ]; then
eval 'for word in '$FF_CUSTOM_ARGS'; do echo "$word"; done'
fi