chrome-sway
Recipe card from the charly-selkies plugin (Images — the deployable catalog).
chrome-sway – Chrome browser on Sway compositor
Section titled “chrome-sway – Chrome browser on Sway compositor”Candy Properties
Section titled “Candy Properties”| Property | Value |
|---|---|
| Dependencies | sway |
| Candies (includes) | chrome |
| Install files | task:, chrome-sway.conf |
# charly.yml -- typically included via sway-desktop compositionmy-browser: candy: - chrome-swayUsed In Boxes
Section titled “Used In Boxes”Part of /charly-selkies:sway-desktop composition.
Chrome Lifecycle in Sway
Section titled “Chrome Lifecycle in Sway”Chrome is launched by Sway’s exec directive (autostart) via chrome-wrapper. It is not a supervisord service – Sway owns the Chrome process. This means:
- Autostart: Chrome starts when Sway starts (via
exec chrome-wrapperin sway config). - Crashes/exits: Chrome does not auto-restart. If Chrome exits, it must be relaunched manually.
- Manual restart: Relaunch Chrome with a
wl: execstep runningchrome-wrapper(thewl:verb dispatches out-of-process via candy/plugin-wl). Do not usecharly shellwith bareswaymsg– the shell may lack the correctSWAYSOCKpath. - On-demand launch: The
browser-openhelper auto-launches Chrome if it’s not running (see/charly-selkies:chromefor details).
Related Candies
Section titled “Related Candies”/charly-selkies:sway– compositor dependency/charly-selkies:chrome– Chrome browser and DevTools (included via candies)/charly-selkies:sway-desktop– composition that includes chrome-sway/charly-selkies:wayvnc– VNC access to see Chrome desktop
When to Use This Skill
Section titled “When to Use This Skill”Use when the user asks about:
- Chrome running in Sway desktop
- Browser autostart in compositor
- CDP (Chrome DevTools Protocol) in desktop containers
- Chrome-sway configuration
Related
Section titled “Related”/charly-image:layer— candy authoring reference (charly.ymlschema, task verbs, service declarations)/charly-check:check— declarative testing (check:block,charly check box,charly check live)