Repository navigation
Show this machine under the welcome tagline, with an OS symbol - #100
Merged
Merged
Conversation
Bare fxcss now prints one line under the tagline: the OS, the Firefox build, the default profile and what is themed in it. The line is read from files only, so Firefox is never started, and anything unreadable drops the line rather than the welcome screen. Each OS name gets the symbol for its special key in the brand colour: Command on macOS, the Windows key on Windows and Meta on Linux. doctor's firefox row uses the same label. A terminal that cannot show the symbols gets the name alone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
Bare
fxcssnow says where you stand, on one line under the tagline:The end of the line depends on the machine:
default-release · <theme> installeddefault-release · has its own chrome/default-release · no theme yetFirefox not found · set FIREFOX_BIN to its pathapplication.ini,profiles.iniand the install manifest, so barefxcssnever starts Firefox.The OS symbol
Each OS name gets the symbol for its special key, in the brand colour:
⌘ macOS(Command),⊞ Windows(the Windows key) and◆ Linux(Meta).doctor'sfirefoxrow uses the same label. A console that isn't UTF-8 gets the name alone.Changes
core.application_ini()andcore.build_identity(): a build's name and version, read without running it.support.build_version()now reads through them; the only difference is that a%inapplication.inino longer makes the file unreadable.style.OS_MARKSandstyle.platform_label(): the symbol and name.style.platform_name()also acceptssys.platformvalues.style.dotted(): styled items joined by a dot, breaking between items at the terminal edge.cli._machine_context()andcli._installed_theme_name(): what the line says.Test plan
python3 -m unittest discover -s tests: 765 tests, 1 skipped (Python 3.14), also inside a pseudo-terminal. The new tests also pass on 3.9.tests/test_welcome_context.pycovers:doctor'sfirefoxrow;build_version()still asking the build when there's no usableapplication.ini.⊞, so Windows has to borrow it from another font, and an older console may show a box.fxcssandfxcss doctorin your own terminal.🤖 Generated with Claude Code