mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
The reference session could not show the system UI or open an app, even with every package built: - weft-servo-shell ignores command-line arguments, yet infra/systemd/servo-shell.service passed it the page path, and the binary's packaged fallback named a path no package provides. The Nix package did not install the page and its NixOS service did not name it either, so the shell exited at startup. - The NixOS weft-appd user service was wanted by nothing, so it never started, and it had no WEFT_APP_SHELL_BIN, so every launch would stop before its UI host started. The weft-servo-shell package now installs the page as share/weft/shell/system-ui.html, the binary falls back to that path in the package's active revision, the systemd unit drops the ignored argument, and the NixOS service sets WEFT_SYSTEM_UI_HTML to the package's copy. weft-appd is wanted by the graphical session and is given the app shell. docs/building.md lists what still keeps the image from a working desktop: the Servo source hash, servo-embed in the shell packages and the fixed Wayland socket name.
18 lines
506 B
Desktop File
18 lines
506 B
Desktop File
[Unit]
|
|
Description=WEFT OS Servo Shell
|
|
Documentation=https://github.com/weft-os/weft
|
|
Requires=weft-compositor.service
|
|
After=weft-compositor.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
PassEnvironment=WAYLAND_DISPLAY XDG_RUNTIME_DIR DISPLAY
|
|
Environment=WEFT_APPD_WS_PORT=7410
|
|
# The page is the package's share/weft/shell/system-ui.html; set
|
|
# WEFT_SYSTEM_UI_HTML to use another.
|
|
ExecStart=/packages/system/weft-servo-shell/active/bin/weft-servo-shell
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
|
|
[Install]
|
|
WantedBy=graphical.target
|