prism-webapp
A specialized utility that launches any website as a standalone desktop application. It utilizes Chromium's "App Mode" to strip away the browser's URL bar, tabs, and bookmarks, providing a focused, windowed experience for web services. This script is the foundational tool used by 01 prism-ai, 08 prism-chat, and 19 prism-music.
How it works
- Dependency Check: It verifies that
chromiumis installed in the system path. Prism relies specifically on Chromium for its--appflag consistency. - App Mode Execution:
- It uses the
--app="$URL"flag to launch the site in a minimalist window. - It uses
setsidand&to fully detach the Chromium process from the parent terminal. This ensures that even if you close the terminal where the command was typed, the web app stays open.
- It uses the
- Output Suppression: It pipes all browser logs and errors to
/dev/nullto keep the user's terminal clean.
Dependencies
chromium: The engine used to render the web app.util-linux: Providessetsidfor process detachment.
Usage
prism-webapp <URL>
Example
To open YouTube in a dedicated, distraction-free window:
prism-webapp https://www.youtube.com