diff --git a/garden-common/src/main/assets/linux/thothterm-garden.sh b/garden-common/src/main/assets/linux/thothterm-garden.sh index 3480784..76f722e 100644 --- a/garden-common/src/main/assets/linux/thothterm-garden.sh +++ b/garden-common/src/main/assets/linux/thothterm-garden.sh @@ -66,13 +66,14 @@ if [ -n "${PS1-}" ] && [ -t 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. +# Services of snaps start when asked (each holds a PRoot process, and an older +# phone runs out of processes): `snap start --enable` marks one to start with +# the guest. They end with the app and the guest has no init system to bring +# them back, so `snap autostart` starts what was enabled and is not running. +# Nothing runs when no snap has an enabled 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 + && grep -q '"autostart": \[$' /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 315d057..dfb6a57 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.4.2 (submodule third_party/thothdock), Apache-2.0. +# github.com/Lord1Egypt/ThothDock v0.4.3 (submodule third_party/thothdock), Apache-2.0. # The daemon's only dependency, golang.org/x/sys, is vendored in that tree. -thothdockCommit=e61ee05 +thothdockCommit=73e30dc # 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 c746002..e93bab2 100644 --- a/garden-debian/build.gradle +++ b/garden-debian/build.gradle @@ -25,6 +25,7 @@ android { vectorDrawables.useSupportLibrary = true + // 0.5.7: ThothDock engine 0.4.3 (snap services start when asked, not at install or with every window: each costs a PRoot process; snap start --enable keeps one starting with each window). // 0.5.6: ThothDock engine 0.4.2 (Flatpak: commands that are symlinks into /app (LibreOffice), $ORIGIN of apps (Inkscape); the flatpak wrapper waits for apt's lock). // 0.5.5: ThothDock engine 0.4.1 (Flatpak: xdg-dbus-proxy for KeePassXC and Firefox, /dev binds for GL apps; installs resume after a dropped connection). // 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). @@ -35,8 +36,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 506 - versionName '0.5.6' + versionCode 507 + versionName '0.5.7' // 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/507.txt b/garden-debian/fastlane/metadata/android/en-US/changelogs/507.txt new file mode 100644 index 0000000..3d03bdf --- /dev/null +++ b/garden-debian/fastlane/metadata/android/en-US/changelogs/507.txt @@ -0,0 +1 @@ +snap: services start only when asked (each one costs a process and about 50 MB, which an older phone lacks): snap start , or snap start --enable to start with each window. A refresh restarts what ran. Engine 0.4.3. 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 8bcff4e..50de089 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", "504", "505", "506"}) { + for (String code : new String[]{"301", "400", "401", "402", "500", "501", "502", "503", "504", "505", "506", "507"}) { assertTrue(code, read(dir + "changelogs/" + code + ".txt").length() <= 500); } } diff --git a/third_party/thothdock b/third_party/thothdock index e61ee05..73e30dc 160000 --- a/third_party/thothdock +++ b/third_party/thothdock @@ -1 +1 @@ -Subproject commit e61ee05f2a3c7ec27a54d67f87ea1b412c00de91 +Subproject commit 73e30dce7b2d0236fb985b5cd4714830c40c10a9