# Dependencies

Everything cont8nuum needs, by openSUSE Tumbleweed package name. All of
it is free software. Keep this file current when a component starts
needing something new, at build time or at run time, and when an install
starts touching files outside its prefix.

`packaging/requirements.txt` is all of this as one zypper list (build
and run, the apps, the wallet's build; XR and the optional bits
commented out), for `sudo zypper install $(sed 's/#.*//'
packaging/requirements.txt)`; `docs/to-claude.txt` is how to install on a
minimal Tumbleweed, written for Claude to make a script from. Keep both
in step with this file.

## Building

```sh
sudo zypper in gcc meson ninja \
	wlroots-devel wayland-devel wayland-protocols-devel libinput-devel \
	libxkbcommon-devel libpixman-1-0-devel fontconfig-devel \
	cairo-devel pango-devel glib2-devel gdk-pixbuf-devel librsvg-devel \
	libxcb-devel xcb-util-wm-devel pam-devel libpulse-devel libxml2-devel \
	libsecret-devel polkit-devel libglycin-devel gexiv2-devel \
	libarchive-devel mpv-devel 'pkgconfig(libavformat)' \
	'pkgconfig(libavcodec)' 'pkgconfig(libavutil)' \
	Mesa-libGLESv2-devel Mesa-libEGL-devel libdrm-devel
```

`c8-base` (pkg-config `c8-base`) is our own: a static library and headers
from the c8ui repo, which c8-lua, c8-widgets, c8-shell, c8-settings, c8-news,
c8-tailscale, c8-weather, c8-tiles and c8-cirrus build against, so c8ui is built
before all of them (`build.sh` does). It needs only glib-2.0 and gio-2.0
and adds nothing at run time.

| Package | pkg-config | Used by | Needed? |
|---|---|---|---|
| wlroots-devel | wlroots-0.20 | cont8nuum | yes |
| wayland-devel | wayland-client, -server, -scanner | all but c8-theme | yes |
| desktop-file-utils | (`update-desktop-database`, a program) | c8-lua: `gnome.post_install` looks for it at setup and stops without it | yes, for c8-lua |
| wayland-protocols-devel | wayland-protocols (1.37+ for c8-share's capture protocols) | cont8nuum, c8ui, c8-shell, c8-settings, c8-video | yes |
| libinput-devel | libinput | cont8nuum | yes |
| Mesa-libGLESv2-devel, Mesa-libEGL-devel | glesv2, egl | cont8nuum (`glasses.c`: drawing XR in XR glasses), c8-video (the video's own surface, and the shader for 3D and all-round videos) | yes |
| libxkbcommon-devel | xkbcommon | cont8nuum, c8ui, c8-shell, c8-news, c8-weather, c8-tiles, c8-photos, c8-video, c8-cirrus | yes |
| libpixman-1-0-devel | pixman-1 | cont8nuum, c8ui (the press tilt's perspective, which cairo can't draw) | yes |
| libdrm-devel | libdrm | cont8nuum (`output.c`: full colour range on XR glasses) | yes |
| fontconfig-devel | fontconfig | cont8nuum | yes |
| cairo-devel | cairo | c8ui and up | yes |
| pango-devel | pangocairo | c8ui, c8-weather (the radar's place names) | yes |
| glib2-devel | glib-2.0, gio-2.0, gio-unix-2.0 (+ gdbus-codegen) | c8ui, c8-widgets, c8-shell, c8-settings | yes |
| gdk-pixbuf-devel | gdk-pixbuf-2.0 | cont8nuum (`c8-panorama`, the glasses' background), c8-lua (`c8.picture`), c8-shell (also Start's picture), c8-sync (synced pictures, checked and encoded again), c8-news, c8-weather (radar maps), c8-tiles (art thumbnails), c8-cirrus (pictures, and making ones to post ready) | yes |
| (fetched) Lua 5.4.8 | lua-5.4, lua5.4 or lua54 when the system has one | c8-lua (apps and tiles in Lua). Tumbleweed's `lua54-devel` can't be installed beside `luajit-devel`, which `mpv-devel` wants, so here meson downloads the pinned source in `toolkit/lua/subprojects/lua.wrap` (checksum checked; the first build needs the network) and builds it into `c8-lua` | yes, for c8-lua; nothing to install |
| mpv-devel | mpv (libmpv 2.1+, mpv 0.36+) | c8-video (plays everything; wayland-devel's wayland-egl goes with it) | yes, for c8-video |
| pkgconfig(libavformat), pkgconfig(libavcodec), pkgconfig(libavutil) (Tumbleweed: `ffmpeg-N-libav*-devel`, N the FFmpeg of the day) | libavformat, libavcodec, libavutil | c8-video (`bitsubs.c`: Blu-ray and DVD subtitles read and decoded by the app for 3D and all-round videos) | yes, for c8-video |
| libglycin-devel | glycin-2 | c8-photos (decodes every picture, each decoder sandboxed) | yes, for c8-photos |
| gexiv2-devel | gexiv2-0.16 | c8-photos (turning pictures by their EXIF orientation, the camera's details) | optional: `-Dmetadata=disabled`, no Rotate and no camera details |
| libxml2-devel | libxml-2.0 | c8-news (reads RSS and Atom, and the HTML in stories) | yes, for c8-news |
| libarchive-devel | libarchive | c8-files (extracts archives in its sandboxed helper `c8-files-unpack`, and makes them) | yes, for c8-files |
| librsvg-devel | librsvg-2.0 (>= 2.52) | c8ui | optional: `-Dsvg=disabled` |
| libxcb-devel, xcb-util-wm-devel | xcb, xcb-icccm | cont8nuum (Xwayland) | optional: `-Dxwayland=disabled` |
| pam-devel | pam | c8-shell (c8-lock, pam_c8wallet) | optional: no c8-lock or pam_c8wallet (wallet opens by asking) without it |
| libpulse-devel | libpulse, libpulse-mainloop-glib | c8-settings (Sound) | yes |
| libsecret-devel | libsecret-1 | c8-settings (`c8-accounts`: online accounts' tokens in the wallet), c8-cirrus (its session's tokens there too) | yes |
| polkit-devel | polkit-agent-1, polkit-gobject-1 | c8-shell (`c8-polkit`, the polkit agent) | optional: without it `c8-polkit-agent` runs another installed agent |

### VR games in XR (`build.sh --xr`, c8-xr)

Optional: the desktop builds and runs without any of it. `xr/build.sh`
fetches the OpenXR SDK (release-1.1.65: the loader, its headers and
`hello_xr`), Monado (v25.1.0, with our driver for the glasses added)
and xrizer (v0.6, OpenVR on OpenXR, for SteamVR's games) and builds
them into the prefix (xrizer, run by Steam's container, which sees
home but not `/usr/local`, into `~/.local/share/xrizer` unless the
prefix is in home). c8 then builds its OpenXR overlay
(`xrclient.c`) against the headers and dlopens the loader.

| Package | What uses it | Needed? |
|---|---|---|
| cmake | building both | yes, for `--xr` |
| (fetched) OpenXR-SDK-Source release-1.1.65 | `libopenxr_loader.so.1`, `openxr.pc` and headers (c8's `xrclient.c`), `hello_xr` for tests; not packaged for Tumbleweed | yes, for `--xr`; nothing to install |
| (fetched) Monado v25.1.0 | `monado-service`, `libopenxr_monado.so`, `share/openxr/1/openxr_monado.json` | yes, for `--xr`; nothing to install |
| eigen3-devel, glslang-devel, shaderc, vulkan-devel, vulkan-headers | Monado (its maths; its compositor's shaders; Vulkan) | yes, for `--xr` |
| Mesa-libGLESv3-devel | Monado's OpenGL ES support, which c8's overlay draws with (without it Monado builds but c8 can't join it) | yes, for `--xr` |
| libusb-1_0-devel, libhidapi-devel, libbsd-devel, cJSON-devel, sdl2-compat-devel, libXrandr-devel | Monado (other headsets' drivers, its debug window) | yes, for `--xr` (some are optional to Monado; these are the ones its defaults look for) |
| (fetched) xrizer v0.6 | SteamVR's (OpenVR) games on Monado: `bin/linux64/vrclient.so`, which c8 points `VR_OVERRIDE` at | yes, for `--xr`; nothing to install |
| cargo, rust | building xrizer (also the wallet's) | yes, for `--xr` |
| shaderc | also xrizer (`glslc`, its shaders) | yes, for `--xr` |

## Running

| Package | What uses it | Needed? |
|---|---|---|
| sddm-qt6 | logging in; c8-theme ships an SDDM theme | to log in from SDDM |
| systemd, dbus-1-tools | the session target, environment import (`systemctl`, `dbus-update-activation-environment`) | yes |
| xwayland | X11 apps | optional (`xwayland = false`) |
| accountsservice | the account picture (`/var/lib/AccountsService/icons`) on Start, the lock screen, c8-askpass and c8-polkit | optional: a plain figure instead |
| xdg-user-dirs | Pictures, Downloads and the other home folders (Files' places, Screenshots) | yes |
| xdg-desktop-portal, xdg-desktop-portal-gtk | portals (`cont8nuum-portals.conf`: default=gtk); c8ui apps' Open and Save (`c8ui_file_open/save`) | yes, for sandboxed and portal apps, and for c8ui apps to open files |
| adwaita-icon-theme | Files: file type, place and drive icons | yes, or Files shows no icons |
| gvfs | Files: Trash, drives and network places (the volume monitor); the shell's toast when a drive is plugged in | yes, for Trash and drives in Files, and for that toast |
| hwdata (`pci.ids`) | PC settings' PC info: the graphics card's name | optional: the driver's name instead |
| gvfs-backends, gvfs-backend-samba | Files: Network (`network:///`, nearby computers), smb, sftp, ftp and WebDAV (`dav://`, `davs://`; Connect turns `https://` into `davs://`); and looking into archives like folders (`archive://`) | optional: no network places, and archives open in their app instead (Extract still works) |
| bubblewrap (`bwrap`) | c8ui thumbnails: thumbnailers only ever run inside it; Files: archives are only ever extracted inside it | yes, for new thumbnails (without it only cached ones show) and for Extract in Files |
| thumbnailers: glycin-thumbnailer (images), ffmpegthumbnailer (videos), evince or papers thumbnailer (PDF), … | c8ui thumbnails (any `.thumbnailer` under /usr) | optional: no thumbnails for those types |
| libmpv2 | c8-video: the player itself (found by `make-deps-rpm.sh` as a library c8-video loads); its FFmpeg decides which videos play | yes, or Video doesn't start |
| glycin-loaders | c8-photos: the decoders glycin runs (PNG, JPEG, GIF, WebP, AVIF, HEIF, JPEG XL, SVG, TIFF…), inside bwrap | yes, or Photos shows nothing |
| desktop-file-utils (`update-desktop-database`) | installing a c8ui app made from `toolkit/c8ui/template` (its `MimeType=`) | yes, for "open with" to know the app |
| xdg-desktop-portal-wlr | screenshots and screen sharing (0.8+: c8-share is its picker, and picking one window needs 0.8) | optional |
| polkit (`polkitd`, `polkit-agent-helper-1`) | `c8-polkit`, the agent `c8-polkit-agent` runs: apps asking for admin rights get the User Account Control card | yes, or apps can't ask for admin rights |
| another polkit agent (polkit-gnome, mate-polkit, polkit-kde-agent-6, LXQt's, Hyprland's) | `c8-polkit-agent` runs the first one found when c8-polkit isn't built or can't run | no, only without c8-polkit |
| glib2-tools (`gsettings`, `gio`) | `cont8nuum-gtk.service` (`c8-gtk-settings`): no window buttons on GTK apps' title bars; it also writes `gtk-decoration-layout` in `~/.config/gtk-{3,4}.0/settings.ini`. Notes (c8-lua) deletes to the Trash with `gio trash` | optional: GTK apps keep their buttons; Notes deletes outright |
| fontconfig (`fc-list`) | Text editor (c8-lua): the fonts to choose from for rich text | optional: only the fonts its documents use |
| openssh-clients (`ssh-agent`) | `cont8nuum-ssh-agent.service`: keys stay unlocked for the session when the login set no `SSH_AUTH_SOCK` | optional: ssh and git ask for the passphrase every time |
| wireplumber (`wpctl`) | volume keys, Settings flyout | yes, for sound control |
| pulseaudio-utils (`pactl`) | the volume widget; the apps in the Volume tile's mixer; sound to the glasses in XR | optional |
| NetworkManager | network icon, Networks flyout | optional: the network parts stay empty |
| upower | battery icon (shell, lock screen) | optional |
| pipewire-pulseaudio | PC settings → Sound (speaks the PulseAudio protocol) | yes, for the Sound page |
| bluez | PC settings → Bluetooth (devices, pairing) | optional: the page says Bluetooth isn't running |
| systemd (uaccess on `/dev/rfkill`) | Airplane mode blocking every radio, Bluetooth too | yes; without access only Wi-Fi is turned off |
| power-profiles-daemon (or tuned-ppd) | power modes: the Power tile's menu, PC settings → Power, the power mode widget | optional: no power modes shown |
| systemd-logind | brightness, lock on suspend, idle | yes |
| xdg-utils (`xdg-open`) | opening files and links, a saved screenshot from its notification | yes |
| libnotify-tools (`notify-send`) | the compositor's screenshot notifications (Print keys) | optional: screenshots are still taken |
| oo7 0.6 (`packaging/build-oo7.sh`) | the wallet (`org.freedesktop.secrets`), run by c8-wallet, and the Secret portal (`cont8nuum-portals.conf`); online accounts' tokens (PC settings) | yes, for saved passwords; Tumbleweed's 0.4.3 hangs Chromium/Electron apps (see CLAUDE.md) |
| oo7-portal (package) | brings the portal's `.portal` file, D-Bus service and user unit, which `packaging/build-oo7.sh`'s drop-in points at the 0.6 binary | yes, for Flatpak apps' saved passwords |
| oo7-cli | looking into the wallet by hand | optional |
| python3-gobject | `c8-wallet-import` (copy KWallet into oo7) | optional |
| ksshaskpass or the distribution's `ssh-askpass` | c8-askpass hands over to it without Wayland | optional |
| curl | weather widget; **c8-news** fetches every feed and picture with it, and talks to rssnail; **c8-accounts** signs in to online accounts and refreshes their tokens with it; **c8-sync** talks to the cont8nuum account with it; **c8-weather** gets forecasts, alerts and radar from weathersnail.com and keeps places on the snail.zone account with it; **c8-tiles** searches SteamGridDB and downloads its art with it; **c8-cirrus** talks to the account's server and gets pictures with it | optional, but c8-news does nothing, online accounts can't sign in, settings don't sync and Weather has no weather, Tile maker finds no game art and Cirrus shows nothing without it |
| ffmpeg | album art in the media widget | optional |
| adobe-sourceserifpro-fonts | c8-news: story text and summaries are set in Source Serif Pro (SIL OFL), in place of News's Cambria | optional: any serif stands in |
| google-noto-coloremoji-fonts | colour emoji wherever c8ui draws text (toasts, News, entries) and in other apps | optional: emoji show as outlines or boxes |
| tailscale | c8-tailscale: the app and its live tile run the `tailscale` command for everything; nothing without it | optional |
| polkit (`pkexec`) | c8-tailscale, when the user isn't tailscaled's operator: `tailscale set`, `up`, `down`, `login` go through it, and starting tailscaled always does; the shell, to put the lock picture where the sign-in screen sees it (`c8-login-picture`) | optional: the app offers to make you the operator, which asks once; the sign-in screen shows the pattern |

`packaging/runtime-deps.txt` lists these again for `cont8nuum-deps`, an
RPM holding no files, only dependencies (`packaging/make-deps-rpm.sh
--install`, after `./build.sh --install`): cont8nuum lives outside rpm,
so without it zypper counts what it uses as unneeded once nothing else
pulls it in (removing Plasma did that to xwayland, power-profiles-daemon
and more). The script adds the packages owning every library c8's
installed programs load. Keep runtime-deps.txt in step with this table.

Fonts and icons come with the project: Selawik and the cont8nuum icon
theme are in c8-theme (and c8-news's two nav bar glyphs, in
`share/c8-news`, and c8-weather's five bar glyphs, in `share/c8-weather`, and
c8-cirrus's eleven, in `share/c8-cirrus`).

The wallet's daemon is built from upstream with `packaging/build-oo7.sh` (oo7
0.6.0 plus `packaging/oo7/`, into `/usr/local/libexec`) until Tumbleweed
ships one newer than 0.4.3:

| Package | Used by | Needed? |
|---|---|---|
| cargo, rust | `packaging/build-oo7.sh` | yes, for the wallet |
| curl, patch | `packaging/build-oo7.sh` (fetch the release, apply the patches) | yes, for the wallet |

## The account server (c8-online)

Not part of the desktop: only for whoever runs or works on the account
website. `build.sh` doesn't touch it.

```sh
sudo zypper in php8 php8-cli php8-pdo php8-mysql php8-openssl \
	php8-mbstring php8-curl mariadb
```

| Package | For |
|---|---|
| php8, php8-cli (8.2+) | the site; `bin/c8-online` and `tests/run.sh` use the CLI |
| php8-pdo, php8-mysql | the database (PDO MySQL) |
| php8-openssl | signing id tokens |
| php8-mbstring | name lengths |
| php8-curl | the tests only |
| python313-dbus-python, python313-gobject, dbus-1 | the tests' desktop part only (the real c8-accounts against the site) |
| python313-Pillow | the tests' desktop part only (pictures for the synced Start and lock pictures) |
| mariadb | the database server (MySQL works too); the tests start one of their own |
| bubblewrap, grim, wtype, wlrctl, dbus-1, ImageMagick, python3-gobject | `tools/screenshots.sh` only (retakes the front page's pictures; `tools/ppd-mock.py` stands in for power-profiles-daemon on its own system bus) |
| php8-fpm + a web server | hosting it for real (`bin/c8-online serve` otherwise) |

## Outside the prefix

`./build.sh --install` (prefix `/usr/local`, or any `/usr...` prefix)
also writes these, which a `.prefix` build leaves alone:

| File | From | Why |
|---|---|---|
| `/usr/local/share/wayland-sessions/cont8nuum.desktop` | cont8nuum | the SDDM session entry (in the prefix, but SDDM must be told about it) |
| `/etc/xdg/xdg-desktop-portal-wlr/cont8nuum` | cont8nuum | portal-wlr settings (it reads only ~/.config and /etc/xdg) |
| `/usr/share/xdg-desktop-portal/portals/c8.portal` | c8-files (`portal_dir`) | tells xdg-desktop-portal that Files is a file picker (it reads .portal files from its own data dir only) |
| `/etc/pam.d/c8-lock` | c8-shell (`pam_dir`) | PAM rules for the lock screen |
| `/usr/share/polkit-1/actions/org.cont8nuum.login-picture.policy` | c8-shell (`login_picture`) | the active user may copy their lock picture for the sign-in screen without a password (polkit reads actions only there) |
| `/var/lib/cont8nuum/login/USER.jpg` | c8-shell's `c8-login-picture` (root, at run time) | the lock picture Photos set, for the SDDM theme (it runs as sddm and can't read homes) |
| `/etc/profile.d/c8-askpass.sh` | c8-shell (`askpass_default`) | `SSH_ASKPASS`, `SUDO_ASKPASS` for every session |
| `/etc/pam.d/sddm`, `/etc/pam.d/passwd`: `pam_c8wallet.so` lines | c8-shell (`wallet_pam`, install script) | the wallet opens with the login password and follows its changes; each copied from `/usr/lib/pam.d` first, which it then overrides |
| `/usr/local/libexec/oo7-daemon`, `oo7-portal`, `/usr/local/lib/systemd/user/oo7-portal.service.d/cont8nuum.conf` | `packaging/build-oo7.sh` | oo7 0.6 instead of the packaged 0.4.3 |
| `/etc/sudo.conf`: `Path askpass` | c8-shell (`askpass_default`, install script) | `sudo -A` without `SUDO_ASKPASS`; the rest of the file is kept |
| `~/.config/openvr/openvrpaths.vrpath` | cont8nuum (`xrruntime.c`, at run time) | written only when xrizer is found and there's no such file: OpenVR wants one even with `VR_OVERRIDE`; SteamVR's own is left alone |
| `/etc/udev/rules.d/70-cont8nuum-xreal.rules` | cont8nuum (`udev_dir`) | the session's user may read XREAL glasses' HID devices (uaccess); run `udevadm control --reload` and replug after |

A release tarball (`/opt/cont8nuum`, see `packaging/release/`) has
`setup` write the same PAM, polkit, askpass, portal, portal-wlr and udev
files and sudo.conf's askpass line, and link into the system: the session
entry (`/usr/local/share/wayland-sessions`), the systemd user units
(`/usr/local/lib/systemd/user`), the D-Bus services
(`/usr/local/share/dbus-1/services`), Selawik (`/usr/local/share/fonts`),
`cont8nuum-portals.conf` (`/usr/local/share/xdg-desktop-portal`) and, with
SDDM, its theme (`/usr/share/sddm/themes`). Its runtime packages, in
Ubuntu's names, are `packaging/distro/ubuntu-26.04.txt`; the wallet's
PAM lines and oo7 aren't in it yet.
