commit 12b76e0661170491c8fa5a5d09e27c811262841d
parent d97c801dfddbebe8bed55d096fad6796339b12f2
Author: Divan Visagie <me@divanv.com>
Date: Fri, 6 Nov 2026 08:58:56 +0100
desktop builds: the launcher comes with patina-desktop, like Files
Diffstat:
6 files changed, 22 insertions(+), 35 deletions(-)
diff --git a/freebsd/README.md b/freebsd/README.md
@@ -18,7 +18,7 @@ headless sway over VNC, not as a session on real graphics (drm-kmod on hardware)
## Running it
```
-freebsd/stage.sh copy patina-desktop's and patina-launcher's last commits into freebsd/src/
+freebsd/stage.sh copy patina-desktop's last commit into freebsd/src/
cd freebsd && bsdt up boot it (the first time: FreeBSD's ZFS image, packages, the build)
bsdt ssh a shell in it
bsdt key super+shift+3 a screenshot, with Patina's own key, into the VM's ~/Pictures/Screenshots
diff --git a/freebsd/bsdt.toml b/freebsd/bsdt.toml
@@ -24,13 +24,10 @@ install = ["rust", "git", "pkgconf", "libxkbcommon", "pixman", "libudev-devd", "
"seatd", "mesa-libs", "libdrm", "wayland"]
[sync]
-exclude = ["src/patina-desktop/target", "src/patina-launcher/target"]
+exclude = ["src/patina-desktop/target"]
[provision]
-# The launcher goes beside the compositor, which puts its own folder first
-# on its clients' PATH.
-run = ["cd src/patina-desktop && cargo build --release",
- "cd src/patina-launcher && cargo build --release && cp target/release/patina-launcher ../patina-desktop/target/release/"]
+run = ["cd src/patina-desktop && cargo build --release"]
[gui]
desktop = "sway"
diff --git a/freebsd/hardware.md b/freebsd/hardware.md
@@ -14,7 +14,7 @@ freebsd/hardware/setup.sh loki # PATINA_GPU=, PATINA_SCALE= (default 1.2) c
```
It is safe to run twice; the steps below are what it does. It also installs Teleprinter
-(the terminal) and Files, from their checkouts beside this repository, with their launcher
+(the terminal), from its checkout beside this repository, and Files, which is in patina-desktop, with their launcher
entries and Files' file chooser portal, and the portal packages. `PATINA_WORKTREE=1` sends the
checkouts' working trees instead of their last commits.
@@ -85,27 +85,24 @@ fetches them itself.
```
# on the machine
-mkdir -p ~/src/patina-desktop ~/src/patina-launcher
+mkdir -p ~/src/patina-desktop
-# on the one with the checkouts, from the folder holding both
-for p in patina-desktop patina-launcher; do
- git -C $p archive HEAD | ssh loki "tar -x -C ~/src/$p"
-done
+# on the one with the checkout, from the folder holding it
+git -C patina-desktop archive HEAD | ssh loki "tar -x -C ~/src/patina-desktop"
# on the machine
-cd ~/src/patina-desktop && cargo build --release # 11.5 minutes on 8 cores
-cd ~/src/patina-launcher && cargo build --release # 3.5 minutes
+cd ~/src/patina-desktop && cargo build --release # 11.5 minutes on 8 cores, the launcher too
```
## 3. Installing it
-`make install` is for Linux (it writes a GDM session and PAM file, and wants `target/launcher/`),
+`make install` is for Linux (it writes a GDM session and PAM file),
so on FreeBSD the programs and their man pages are copied directly:
```
cd ~/src/patina-desktop
doas install -m 755 $(find target/release -maxdepth 1 -type f -perm -u+x -name 'patina-*') \
- ../patina-launcher/target/release/patina-launcher /usr/local/bin/
+ /usr/local/bin/
doas install -m 644 man/*.1 /usr/local/share/man/man1/
doas install -m 644 man/*.7 /usr/local/share/man/man7/
```
diff --git a/freebsd/hardware/setup.sh b/freebsd/hardware/setup.sh
@@ -7,8 +7,8 @@
# hardware/setup.sh [user@]host
#
# The host needs ssh and doas without a password for the user. It installs the
-# desktop (Files is in it), its launcher and Teleprinter (the terminal), from their checkouts
-# beside patina-os (PATINA_DESKTOP, PATINA_LAUNCHER, PATINA_TELEPRINTER
+# desktop (with its launcher and Files) and Teleprinter (the terminal), from their checkouts
+# beside patina-os (PATINA_DESKTOP, PATINA_TELEPRINTER
# override where); PATINA_GPU is the firmware's generation (default:
# tigerlake), PATINA_SCALE the screen's scale (default: 1.2). PATINA_WORKTREE=1 sends
# the checkouts' working trees, uncommitted changes and all, instead of their last commits.
@@ -17,7 +17,6 @@ set -euo pipefail
HOST=${1:?usage: setup.sh [user@]host}
HERE=$(cd "$(dirname "$0")" && pwd)
DESKTOP=${PATINA_DESKTOP:-$HERE/../../../patina-desktop}
-LAUNCHER=${PATINA_LAUNCHER:-$HERE/../../../patina-launcher}
TELEPRINTER=${PATINA_TELEPRINTER:-$HERE/../../../teleprinter}
GPU=${PATINA_GPU:-tigerlake}
SCALE=${PATINA_SCALE:-1.2}
@@ -54,18 +53,17 @@ ship() { # name checkout
fi
}
ship patina-desktop "$DESKTOP"
-ship patina-launcher "$LAUNCHER"
ship teleprinter "$TELEPRINTER"
echo "==> build"
-for p in patina-desktop patina-launcher teleprinter; do
+for p in patina-desktop teleprinter; do
run "cd ~/src/$p && cargo build --release"
done
echo "==> install"
run 'cd ~/src/patina-desktop &&
doas install -m 755 $(find target/release -maxdepth 1 -type f -perm -u+x -name "patina-*") \
- ../patina-launcher/target/release/patina-launcher ../teleprinter/target/release/teleprinter \
+ ../teleprinter/target/release/teleprinter \
target/release/files /usr/local/bin/ &&
doas install -m 644 man/*.1 /usr/local/share/man/man1/ &&
doas install -m 644 man/*.7 /usr/local/share/man/man7/'
@@ -89,7 +87,7 @@ run 'P=/usr/local S=/usr/local/share ICONS=/usr/local/share/icons/hicolor/scalab
cd ~/src/teleprinter
doas install -m 644 packaging/linux/teleprinter.svg $ICONS/com.sectorflabs.Teleprinter.svg
sed "s|^Exec=teleprinter|Exec=$P/bin/teleprinter|" packaging/linux/com.sectorflabs.Teleprinter.desktop | doas tee $S/applications/com.sectorflabs.Teleprinter.desktop >/dev/null
- cd ~/src/files
+ cd ~/src/patina-desktop/files
doas install -m 644 packaging/linux/files.svg $ICONS/com.sectorflabs.Files.svg
sed "s|^Exec=files|Exec=$P/bin/files|" packaging/linux/com.sectorflabs.Files.desktop | doas tee $S/applications/com.sectorflabs.Files.desktop >/dev/null
sed "s|@BINDIR@|$P/bin|" packaging/portal/org.freedesktop.impl.portal.desktop.patina.service | doas tee $S/dbus-1/services/org.freedesktop.impl.portal.desktop.patina.service >/dev/null
diff --git a/freebsd/stage.sh b/freebsd/stage.sh
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
-# Copies the last commits of patina-desktop and patina-launcher into
+# Copies the last commits of patina-desktop into
# freebsd/src/, which bsdt syncs into the VM (it syncs only this folder); the
# VM builds both (bsdt.toml's provision). PATINA_DESKTOP and PATINA_LAUNCHER
# are the checkouts (default: beside patina-os); PATINA_DESKTOP_WORKTREE=1
@@ -26,4 +26,3 @@ stage() {
}
stage "${PATINA_DESKTOP:-$HERE/../../patina-desktop}" patina-desktop
-stage "${PATINA_LAUNCHER:-$HERE/../../patina-launcher}" patina-launcher
diff --git a/linux/desktop/build.sh b/linux/desktop/build.sh
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Builds the Patina desktop for the image, from the last commits of
-# patina-desktop, patina-launcher and Files (not their working trees, so stray changes don't
-# ship), and lays out what the image adds in build/desktop/, as it goes
+# patina-desktop, which holds the launcher and Files (not its working tree, so stray changes
+# don't ship), and lays out what the image adds in build/desktop/, as it goes
# under /:
#
# usr/bin/patina-* the desktop's binaries and the launcher
@@ -11,17 +11,16 @@
# usr/share/dbus-1/services/...portal.desktop.patina.service,
# usr/share/xdg-desktop-portal/... Files as the session's file chooser
# etc/xdg/patina-mimeapps.list folders open in Files, in Patina
-# usr/lib/patina-os/{desktop,launcher,files} which commits they were built from
+# usr/lib/patina-os/desktop which commit they were built from
#
-# PATINA_DESKTOP and PATINA_LAUNCHER are the checkouts
-# (default: beside patina-os). PATINA_DESKTOP_WORKTREE=1 builds their working trees instead,
+# PATINA_DESKTOP is the checkout
+# (default: beside patina-os). PATINA_DESKTOP_WORKTREE=1 builds its working tree instead,
# uncommitted changes and all, to try them in the VM; the image then says
# "+dirty".
set -euo pipefail
ROOT=$(cd "$(dirname "$0")/.." && pwd)
SRC=${PATINA_DESKTOP:-$ROOT/../../patina-desktop}
-LAUNCHER=${PATINA_LAUNCHER:-$ROOT/../../patina-launcher}
BUILD="$ROOT/build"
STAGE="$BUILD/desktop"
BUILDER=patina-os-desktop-builder
@@ -59,10 +58,9 @@ docker build -q -f "$ROOT/desktop/builder.Containerfile" -t "$BUILDER" "$ROOT/de
mkdir -p "$BUILD/target"
commit=$(stage "$SRC" "$BUILD/src")
-launcher_commit=$(stage "$LAUNCHER" "$BUILD/launcher-src")
# Cargo's downloads are kept in a volume, and its target folder in build/, so
# rebuilds are incremental. As the user, so build/ stays theirs.
-for project in src launcher-src; do
+for project in src; do
say "building $project"
docker run --rm --user "$(id -u):$(id -g)" \
-e CARGO_HOME=/cargo -e HOME=/tmp \
@@ -101,5 +99,3 @@ install -D -m 644 "$F/packaging/portal/patina.portal" "$STAGE/usr/share/xdg-desk
install -D -m 644 "$F/packaging/portal/patina-portals.conf" "$STAGE/usr/share/xdg-desktop-portal/patina-portals.conf"
install -d "$STAGE/etc/xdg"
printf '[Default Applications]\ninode/directory=com.sectorflabs.Files.desktop\n' > "$STAGE/etc/xdg/patina-mimeapps.list"
-echo "$commit" > "$STAGE/usr/lib/patina-os/files"
-echo "$launcher_commit" > "$STAGE/usr/lib/patina-os/launcher"