Developers
Contributing to Starchaser
The rules every change follows, how to check your work, and how the code is laid out.
The source repository is not public yet. This page is here so you know what to expect when it opens: these are the rules the code is already held to.
For vulnerabilities, follow the security policy instead of opening a public issue. Everyone taking part follows the code of conduct.
Absolute rules #
These are never traded off against anything else.
Never move the pointer #
Nothing in Starchaser moves or warps the mouse pointer, on any machine.
- No cursor-move dispatch, no warp options turned on, and no tools that fake pointer motion.
- Solve focus problems with focus settings, never by moving the pointer. On tablets, focus follows taps and clicks only, so on-screen keyboard keys can't pull focus to the window under the pointer.
starchaser check pointerenforces this. The desktop setup runs it on the source before installing and on the machine's configuration before finishing, and refuses on a hit. Run it yourself before you commit:
bin/starchaser check pointer .
No borrowed desktop code, and no other desktop's name on screen #
Starchaser contains no code or frameworks from another desktop environment. Text that users see never names another desktop or distribution. The named shortcut profiles in Settings, and the Windows or Mac profile choice in Welcome, are the written exception.
The product is called "Starchaser Linux" or "Starchaser", and nothing else.
US English, imperial units first #
Write color, canceled, behavior, gray. Distances and sizes a person reads come in imperial units first with metric in parentheses: "0.4 mi (0.6 km)". This includes comments, commit messages, test fixtures and example text.
Desktop conventions #
- Every custom window has a close button (×).
- Pop-ups size to their content.
- The touch keypad shows only on touch machines. The Accessibility page can explicitly show the on-screen keyboard on any computer.
- Every control can be reached with Tab and pressed with Return or Space.
Checking your work #
Run the tests. They need no root, no network and no desktop:
for t in tests/*_test.py; do python3 "$t" || echo "FAILED: $t"; done
python3 system/usr/local/lib/starchaser/firewall.py --self-test
- A bug fix adds a test that fails without the fix, when it can be tested without a desktop.
- A refactor that should not change behavior names its proof in the commit message: an existing test, a new test, or the virtual machine check you ran.
- Test QML, and anything that needs the compositor, in a virtual machine, never on the computer you develop on. Trying it in a virtual machine has the settings.
If a rule and the code disagree, fix one of them in the same change.
Commits #
- One logical change per commit, with a subject line that says what changed for the user or the code.
- History goes in commit messages, not in comments. A comment says why the code is the way it is now.
- Nothing personal in shipped code: no real network addresses, user names, home paths, host names or email addresses. Use "Alex Doe", alex and my-laptop as example names.
- For user-visible changes, update the changelog under the right change type and area.
How the source is laid out #
| Path | What's there |
|---|---|
bin/ | The starchaser command and the tools behind it. Settings and the desktop call these; most print JSON. |
config/ | Per-user configuration: the compositor, the desktop, the terminal, the editor, firewall app lists. |
config/quickshell/ | The desktop itself, one folder per program: the taskbar, the menu, Settings, the login screen, the lock screen, Welcome and the installer. |
system/ | System files laid out as they land on disk: root helpers, polkit actions and rules, systemd units, the boot screen. |
installer/ | The install engine behind both installers, and the desktop setup script. |
iso/ | The build script and profile for the installer image. |
packages/ | The packages built from the source. |
satellites/ | Included add-ons. |
themes/ | Color themes, one TOML file each. |
tests/ | Tests that run without a desktop, root or network. |
Building the installer image #
The image is built with archiso on an Arch Linux system; a virtual machine is fine. The build needs the signed package repository, checks every file in it against the committed keyring first, and stops if anything is missing. It builds from the last commit, not from your working tree, so commit first.
Reporting bugs and asking for features #
See how to report a bug. Reports should include your Starchaser version, your hardware and the steps to reproduce the problem. A feature request should explain the improvement and the problem it solves.