diff --git a/garden-common/src/main/assets/linux/flatpak b/garden-common/src/main/assets/linux/flatpak index 03d91f6..6bfadbe 100644 --- a/garden-common/src/main/assets/linux/flatpak +++ b/garden-common/src/main/assets/linux/flatpak @@ -42,9 +42,10 @@ if [ -z "${FLATPAK_BWRAP-}" ] && [ -x "$BWRAP" ]; then fi if [ ! -x /usr/bin/flatpak ] || ! command -v dbus-daemon >/dev/null 2>&1; then echo "Installing flatpak (first use)..." >&2 + # A new guest runs apt itself for a while: wait for its lock (5 minutes). if ! sudo sh -c 'export DEBIAN_FRONTEND=noninteractive - apt-get install -y --no-install-recommends flatpak dbus || - { apt-get update && apt-get install -y --no-install-recommends flatpak dbus; }' >&2; then + apt-get -o DPkg::Lock::Timeout=300 install -y --no-install-recommends flatpak dbus || + { apt-get -o DPkg::Lock::Timeout=300 update && apt-get -o DPkg::Lock::Timeout=300 install -y --no-install-recommends flatpak dbus; }' >&2; then echo "flatpak could not be installed. Try: sudo apt install flatpak dbus" >&2 exit 127 fi diff --git a/garden-common/thothdock/thothdock.properties b/garden-common/thothdock/thothdock.properties index 7b50e6f..315d057 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.1 (submodule third_party/thothdock), Apache-2.0. +# github.com/Lord1Egypt/ThothDock v0.4.2 (submodule third_party/thothdock), Apache-2.0. # The daemon's only dependency, golang.org/x/sys, is vendored in that tree. -thothdockCommit=9e9fcd7 +thothdockCommit=e61ee05 # 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 eb5729d..c746002 100644 --- a/garden-debian/build.gradle +++ b/garden-debian/build.gradle @@ -25,6 +25,7 @@ android { vectorDrawables.useSupportLibrary = true + // 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). // 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. @@ -34,8 +35,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 505 - versionName '0.5.5' + versionCode 506 + versionName '0.5.6' // 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/506.txt b/garden-debian/fastlane/metadata/android/en-US/changelogs/506.txt new file mode 100644 index 0000000..92c923c --- /dev/null +++ b/garden-debian/fastlane/metadata/android/en-US/changelogs/506.txt @@ -0,0 +1 @@ +flatpak: LibreOffice starts (a command that is a symlink into /app is found), Inkscape finds its own libraries (apps started through a shell keep their own path), the first flatpak install waits for apt's lock in a new guest. Engine 0.4.2. Tested with 14 apps. \ 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 e5a69d6..8bcff4e 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"}) { + for (String code : new String[]{"301", "400", "401", "402", "500", "501", "502", "503", "504", "505", "506"}) { assertTrue(code, read(dir + "changelogs/" + code + ".txt").length() <= 500); } } diff --git a/third_party/thothdock b/third_party/thothdock index 9e9fcd7..e61ee05 160000 --- a/third_party/thothdock +++ b/third_party/thothdock @@ -1 +1 @@ -Subproject commit 9e9fcd72074dc2c2661b0276e7aad86525fed20e +Subproject commit e61ee05f2a3c7ec27a54d67f87ea1b412c00de91