From 1b5d154b637f0c03e2650a27ce648b27a8e6d976 Mon Sep 17 00:00:00 2001 From: Lord Egypt Date: Mon, 2 Nov 2026 05:03:21 +0300 Subject: [PATCH] =?UTF-8?q?ThothTerm=20=E2=80=A2=20ThothDock=200.5.4:=20Th?= =?UTF-8?q?othDock=20engine=200.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit snapctl and snap services (Nextcloud and other snaps with services install and run), one address per snap, hard-link repair, snap run --shell, snap autostart from the guest profile. Engine pinned at 08b0e69. Co-Authored-By: Claude Sonnet 5.5 --- .../src/main/assets/linux/thothterm-garden.sh | 11 +++++++++++ garden-common/thothdock/thothdock.properties | 4 ++-- garden-debian/build.gradle | 5 +++-- .../metadata/android/en-US/changelogs/504.txt | 1 + .../java/com/thothterm/debian/ProductNameTest.java | 2 +- third_party/thothdock | 2 +- 6 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 garden-debian/fastlane/metadata/android/en-US/changelogs/504.txt diff --git a/garden-common/src/main/assets/linux/thothterm-garden.sh b/garden-common/src/main/assets/linux/thothterm-garden.sh index 1f2edbc..2d3cd1d 100644 --- a/garden-common/src/main/assets/linux/thothterm-garden.sh +++ b/garden-common/src/main/assets/linux/thothterm-garden.sh @@ -65,3 +65,14 @@ if [ -n "${PS1-}" ] && [ -t 1 ] \ export THOTHTERM_WELCOME_SHOWN=1 thothfetch fi + +# Services of installed snaps start with the guest, as under snapd: they end +# with the app, and the guest has no init system to bring them back. `snap +# autostart` starts only what is installed, enabled and not running, and does +# nothing when no snap has a service. +if [ -z "${THOTHTERM_SNAPS_STARTED-}" ] && [ -x /usr/local/bin/snap ] \ + && [ -f /var/lib/thothdock-snaps/state.json ] \ + && grep -q '"daemons": \[$' /var/lib/thothdock-snaps/state.json 2>/dev/null; then + export THOTHTERM_SNAPS_STARTED=1 + ( /usr/local/bin/snap autostart >/dev/null 2>&1 & ) +fi diff --git a/garden-common/thothdock/thothdock.properties b/garden-common/thothdock/thothdock.properties index 346521e..def4612 100644 --- a/garden-common/thothdock/thothdock.properties +++ b/garden-common/thothdock/thothdock.properties @@ -1,9 +1,9 @@ # ThothDock pins (see tools/stage-thothdock.sh). Both programs are built from # source at exactly these commits; nothing is downloaded during the build. -# github.com/Lord1Egypt/ThothDock v0.3.1 (submodule third_party/thothdock), Apache-2.0. +# github.com/Lord1Egypt/ThothDock v0.4.0 (submodule third_party/thothdock), Apache-2.0. # The daemon's only dependency, golang.org/x/sys, is vendored in that tree. -thothdockCommit=631c67f +thothdockCommit=08b0e69 # Lowest Go toolchain accepted (GOTOOLCHAIN=local: Go never fetches another). goMinVersion=1.26.0 diff --git a/garden-debian/build.gradle b/garden-debian/build.gradle index 1189ba3..1d5093d 100644 --- a/garden-debian/build.gradle +++ b/garden-debian/build.gradle @@ -25,6 +25,7 @@ android { vectorDrawables.useSupportLibrary = true + // 0.5.4: ThothDock engine 0.4.0 (snapctl and snap services, one address per snap, hard-link repair; snap run --shell, snap autostart, refresh). // 0.5.3: ThothDock engine 0.3.1 (snap downloads resume, store aliases, squashfs-tools and flatpak set up on first use, snapd guarded); volume keys are no longer Ctrl/Fn by default. // 0.5.2: swipes reach full-screen TUIs as mouse wheel events (OpenCode), SGR mouse reports. // 0.5.1: /proc/stat and /proc/uptime stand-ins (ps -o lstart, Codex's background server). @@ -32,8 +33,8 @@ android { // 0.4.2: store listing only (ThothDock icon, current screenshots, store text); same code and engine as 0.4.1. // 0.4.1: ThothDock engine 0.2.1 (System V IPC, hostname, long Unix sockets; PRoot patches 0010-0018). (0.4.0 was 400.) // 0.4.0: ThothTerm (bullet) ThothDock (package com.thothterm.debian), ThothDock engine 0.2.0 (NextGen). (0.3.1 was 301.) - versionCode 503 - versionName '0.5.3' + versionCode 504 + versionName '0.5.4' // Device tests (the pinch gesture and garden-common's shared tests); // run with `am instrument` against the installed app, never diff --git a/garden-debian/fastlane/metadata/android/en-US/changelogs/504.txt b/garden-debian/fastlane/metadata/android/en-US/changelogs/504.txt new file mode 100644 index 0000000..73c79e4 --- /dev/null +++ b/garden-debian/fastlane/metadata/android/en-US/changelogs/504.txt @@ -0,0 +1 @@ +snap: snapctl works, so Nextcloud and other snaps with services install and run (their services start with the snap and come back when the app opens); snap get/set/refresh/restart and snap run --shell added; a snap's processes share one address, so redis.cli reaches the redis service on localhost; hard links inside snaps no longer break (httpie, python in core18 snaps). Tested with 28 snaps. \ No newline at end of file diff --git a/garden-debian/src/test/java/com/thothterm/debian/ProductNameTest.java b/garden-debian/src/test/java/com/thothterm/debian/ProductNameTest.java index adc8255..d6ec5e4 100644 --- a/garden-debian/src/test/java/com/thothterm/debian/ProductNameTest.java +++ b/garden-debian/src/test/java/com/thothterm/debian/ProductNameTest.java @@ -94,7 +94,7 @@ public void storeTextFitsFdroidLimits() throws Exception { assertTrue(read(dir + "title.txt").trim().length() <= 50); assertTrue(read(dir + "short_description.txt").trim().length() <= 80); assertTrue(read(dir + "full_description.txt").length() <= 4000); - for (String code : new String[]{"301", "400", "401", "402", "500", "501", "502", "503"}) { + for (String code : new String[]{"301", "400", "401", "402", "500", "501", "502", "503", "504"}) { assertTrue(code, read(dir + "changelogs/" + code + ".txt").length() <= 500); } } diff --git a/third_party/thothdock b/third_party/thothdock index 631c67f..08b0e69 160000 --- a/third_party/thothdock +++ b/third_party/thothdock @@ -1 +1 @@ -Subproject commit 631c67f32666034db06c6aeae6089a5773240edc +Subproject commit 08b0e69b75b3acde0aeeb46d9d2922077cc4e244