Add flag to disable startup ascii art (#369)

Adds an environment variable to disable the colorized splash screen.
This commit is contained in:
strangeglyph
2026-02-02 17:39:47 +01:00
committed by GitHub
parent 5db60141bb
commit 72a626cb1a
3 changed files with 15 additions and 1 deletions

View File

@@ -22,6 +22,7 @@
* [Metadata Provider Configuration](advanced-features/metadata-provider-configuration.md)
* [Custom port](advanced-features/custom-port.md)
* [Follow symlinks in frontend files](advanced-features/follow-symlinks-in-frontend-files.md)
* [Disable startup ascii art](advanced-featured/disable-startup-ascii-art.md)
* [Troubleshooting](troubleshooting.md)
* [API Reference](api-reference.md)
* [Screenshots](screenshots.md)

View File

@@ -0,0 +1,4 @@
# Disable Startup Ascii Art
* `MEDIAMANAGER_NO_STARTUP_ART`: Set this environment variable (to any value) \
to disable the colorized startup splash screen. Unset to reenable.

View File

@@ -104,7 +104,16 @@ ASCII_ART='
░░░░░░
'
display_cool_text "$ASCII_ART"
if [[ -v MEDIAMANAGER_NO_STARTUP_ART ]]; then
echo
echo " +================+"
echo " | MediaManager |"
echo " +================+"
echo
else
display_cool_text "$ASCII_ART"
fi
echo "Buy me a coffee at https://buymeacoffee.com/maxdorninger"
# Initialize config if it doesn't exist