Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

override branding #21338

Open
steverweber opened this issue Nov 27, 2024 · 1 comment
Open

override branding #21338

steverweber opened this issue Nov 27, 2024 · 1 comment

Comments

@steverweber
Copy link

steverweber commented Nov 27, 2024

perhaps i'm missing something basic but i'm not seeing a simple way to hack in custom branding without being destructive to the native branding files or the /etc/os-release file

Perhaps simple fix is to check for an override path before OS-release variants.

$prefix/share/cockpit/branding/override
$prefix/share/cockpit/branding/$ID-$VARIANT_ID
$prefix/share/cockpit/branding/$ID
$prefix/share/cockpit/branding/default
$prefix/share/cockpit/static

ref: https://github.com/cockpit-project/cockpit/blob/main/doc/branding.md

@martinpitt
Copy link
Member

This is indeed tricky right now. We don't want to encourage messing around in /usr/share, that's distribution package territorry (and in an ever-growing list of OSes it's even read-only). Supporting /usr/local/share/cockpit/branding/ would be nice, though!

As a workaround you could set up a bind mount on $prefix/share/cockpit/branding/$ID, which also isn't destructive.

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

No branches or pull requests

2 participants