Skip to content

Conversation

@MephistoJB
Copy link

No description provided.

@Mincka
Copy link
Owner

Mincka commented Jan 3, 2026

Why?

@MephistoJB
Copy link
Author

Because I need a few lines of code executed before the start of firefox. I do not see another way to achieve that without building my own image (which I would like to avoid)

@MephistoJB
Copy link
Author

Another idea: Maybe it would be more elegant, if the path to the script would be an env var.

@Mincka
Copy link
Owner

Mincka commented Jan 3, 2026

Because I need a few lines of code executed before the start of firefox. I do not see another way to achieve that without building my own image (which I would like to avoid)

Can you give more details about what you'd like to run?
I don't like the idea to be able execute anything on the container.

If you need to install something, you could execute something directly on the container with SSH and create commands for that:
https://community.home-assistant.io/t/run-docker-exec-from-shell-command-integration-or-other-tricks/400810/7?u=mincka

You could even trigger it on add-on (re)start with one of the method explained here:
https://community.home-assistant.io/t/trigger-automation-when-hassio-addon-starts-stops/47616?u=mincka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants