refactor: rename Chrome references to Chromium

- Rename hook file: 0060-install-chrome -> 0060-install-chromium
- Update all logs and comments to say "Chromium" instead of "Chrome"
- Rename chromeStatus -> chromiumStatus in daemon
- Update UI to show "Chromium Browser" instead of "Chrome Browser"
- Update documentation (readme.plan.md, readme.hints.md)

Note: Binary paths (/opt/chromium/chrome) remain as the actual
Chromium executable is named "chrome"
This commit is contained in:
2026-01-08 16:17:48 +00:00
parent 6a5cb3b70c
commit 1435496a1c
9 changed files with 56 additions and 56 deletions

View File

@@ -1,7 +1,7 @@
/**
* Process Manager
*
* Manages spawning and monitoring of Sway and Chrome processes
* Manages spawning and monitoring of Sway and Chromium processes
*/
export interface SwayConfig {
@@ -202,7 +202,7 @@ for_window [class="chromium-browser"] fullscreen enable
}
/**
* Start Chrome browser in kiosk mode
* Start Chromium browser in kiosk mode
*/
async startBrowser(config: BrowserConfig): Promise<void> {
const env: Record<string, string> = {
@@ -213,7 +213,7 @@ for_window [class="chromium-browser"] fullscreen enable
XDG_DATA_HOME: `/home/${this.user}/.local/share`,
};
// Chrome arguments for kiosk mode on Wayland
// Chromium arguments for kiosk mode on Wayland
const browserArgs = [
'--ozone-platform=wayland',
'--enable-features=UseOzonePlatform',
@@ -269,17 +269,17 @@ for_window [class="chromium-browser"] fullscreen enable
this.browserProcess = command.spawn();
// Log output in background
this.pipeOutput(this.browserProcess, 'chrome');
this.pipeOutput(this.browserProcess, 'chromium');
// Force fullscreen via swaymsg after Chrome window appears (backup)
// Force fullscreen via swaymsg after Chromium window appears (backup)
this.forceFullscreenAfterDelay(config);
}
/**
* Force fullscreen for Chrome window after a delay (backup for kiosk mode)
* Force fullscreen for Chromium window after a delay (backup for kiosk mode)
*/
private async forceFullscreenAfterDelay(config: { runtimeDir: string; waylandDisplay: string }): Promise<void> {
// Wait for Chrome window to appear
// Wait for Chromium window to appear
await new Promise((resolve) => setTimeout(resolve, 3000));
console.log('[chromium] Forcing fullscreen via swaymsg');
@@ -379,7 +379,7 @@ for_window [class="chromium-browser"] fullscreen enable
console.log(`[${name}] Process exited with code ${status.code}`);
if (name === 'sway') {
this.swayProcess = null;
} else if (name === 'chrome') {
} else if (name === 'chromium') {
this.browserProcess = null;
}
});