Skip to content

ThothTerm • ThothDock 0.5.4 (504)

Choose a tag to compare

@Lord1Egypt Lord1Egypt released this 02 Nov 03:38
· 7 commits to master since this release

ThothTerm • ThothDock 0.5.4 (504): Nextcloud and other snaps with services now work; snaps keep one address; hard links inside snaps no longer break

  • Package: com.thothterm.debian (unchanged), tags trixie-v*; guest Debian GNU/Linux 13 (trixie); engine ThothDock v0.4.0.
  • snapctl: the snap command now has snapctl (get, set, unset, start, stop, restart, services, is-connected) inside every snap, so snaps whose hooks and scripts call it install and run. Nextcloud's setup scripts call it about 40 times: snap install nextcloud now brings up all eight of its services, the login page opens, and nextcloud.occ and nextcloud.manual-install work. snap get/set/unset (set runs the configure hook and keeps the old value if the hook fails), snap restart, snap refresh and snap run --shell are new.
  • Services: they start when the snap is installed (a daemon with a timer is not scheduled), snapctl stop --disable is kept (caddy turns its own off), and they start again when a new window opens after the app was closed (snap autostart). Nothing restarts a service that exits.
  • One address per snap: a snap's services, hooks and commands share one loopback address, kept across restarts, so redis.cli reaches the redis service on localhost and a service keeps the address you put in a browser. Different snaps and containers never share one. A web app that checks its host name needs the address added, e.g. sudo nextcloud.occ config:system:set trusted_domains 1 --value='127.77.*'; snap services lists the addresses.
  • Hard links: PRoot stores a snap's hard links as symlinks to the path they were made at, and snaps were unpacked into a temporary directory and renamed, which left every hard link dangling (python3.6 in core18: httpie did not run). Snaps are now unpacked where they stay; snaps installed by 0.5.3 or earlier are repaired the first time they run.
  • Refresh: keeps the snap's data, points current at the new revision, runs pre-refresh, post-refresh and configure hooks.
  • Known limits: certbot needs snapd's own socket and stops; aws-cli (classic) needs sudo apt install python3; confinement is still not enforced. Report: docs/SNAP_TEST_REPORT_2026-11-02.md in ThothDock.
  • Verified on a Samsung SM-A165F (Android 16) with 31 snaps tried (28 installed, 3 not published for arm64): jq, htop, btop, yq, hugo, shellcheck, yt-dlp, go, cmake, redis, mosquitto, httpie, etcd, syncthing, rclone, restic, kubectl, helm, terraform, ruby, node 24, nmap, adguard-home and nextcloud 34.0.5 among them; the exact release commit was run in a separate test copy of the app (14 services back after an app restart). ThothDock CI green with new snapctl checks; garden-common and garden-debian unit tests pass.
  • Assets: ThothTerm-ThothDock-v0.5.4.apk (signed, F-Droid variant: downloads the Debian rootfs after explicit opt-in), ThothTerm-ThothDock-v0.5.4-unsigned-reference.apk, SHA256SUMS, SIGNING-MANIFEST.txt, TRIXIE-SIGNING-CERT.txt.

Signing: same production key as 0.3.x to 0.5.x (certificate SHA-256 ca326f0676474f7de4813cd27ec8c618767926790be5e6936c4c112e2bab5ca6), so signed installs update in place.

Reproducible: the unsigned APK was built twice in the F-Droid buildserver-trixie image with fdroid build --on-server; SHA-256 6d005942fffc241a0904c6cc559885d31931e0887dc9f85b6f9813b2f679ad82. The signed APK (998f41fbfd2569e039f4e388384a6b84dce993f945b8272d79d0c73243785a37) is that file plus a signature; apksigcopier compare passes. Source: commit 1b5d154, ThothDock 08b0e69.