From a63ed2598c827e2fe2b9bfa196900db1d9d21a67 Mon Sep 17 00:00:00 2001 From: Kurt Himebauch <136133082+xXJSONDeruloXx@users.noreply.github.com> Date: Thu, 3 Dec 2026 07:02:24 -0500 Subject: [PATCH] Include IBus in the stock Ubuntu runtime --- tools/ubuntu/packages-runtime.txt | 3 +++ tools/ubuntu/protected-runtime.txt | 3 +++ tools/ubuntu/setup.sh | 10 ++++++++++ 3 files changed, 16 insertions(+) diff --git a/tools/ubuntu/packages-runtime.txt b/tools/ubuntu/packages-runtime.txt index c6bcd3618e..95269a035b 100644 --- a/tools/ubuntu/packages-runtime.txt +++ b/tools/ubuntu/packages-runtime.txt @@ -28,12 +28,14 @@ gamescope gir1.2-flatpak-1.0 gir1.2-glib-2.0 gir1.2-gtk-3.0 +gir1.2-ibus-1.0 gnu-coreutils gnupg-agent gpgv grep gzip hostname +ibus iproute2 iputils-ping less @@ -218,6 +220,7 @@ psmisc pulseaudio-utils python3 python3-gi +python3-ibus-1.0 python3-zstandard sed sensible-utils diff --git a/tools/ubuntu/protected-runtime.txt b/tools/ubuntu/protected-runtime.txt index 6462252206..fabadc3d0a 100644 --- a/tools/ubuntu/protected-runtime.txt +++ b/tools/ubuntu/protected-runtime.txt @@ -6,6 +6,8 @@ dpkg flatpak fontconfig gamescope +gir1.2-ibus-1.0 +ibus libegl-mesa0 libgl1-mesa-dri libluajit-5.1-2 @@ -16,4 +18,5 @@ mesa-libgallium mesa-vulkan-drivers python3 python3-gi +python3-ibus-1.0 xwayland diff --git a/tools/ubuntu/setup.sh b/tools/ubuntu/setup.sh index a2b0d63e66..0a673b3101 100755 --- a/tools/ubuntu/setup.sh +++ b/tools/ubuntu/setup.sh @@ -103,6 +103,15 @@ record_apt_state() { done > /usr/share/droiddeck/apt/system-sources.txt } +verify_ibus_runtime() { + local path + for path in /usr/bin/ibus /usr/bin/ibus-daemon /usr/libexec/ibus-dconf; do + [ -x "$path" ] || { printf 'Missing executable required for Steam IBus: %s\n' "$path" >&2; return 1; } + done + /usr/bin/ibus-daemon --version + /usr/bin/python3 -c 'import gi; gi.require_version("IBus", "1.0"); from gi.repository import IBus; assert IBus.Bus' +} + finish() { sed -i 's/^Types: deb deb-src$/Types: deb/' /etc/apt/sources.list.d/ubuntu.sources record_apt_state @@ -133,6 +142,7 @@ if [ "$stage" = runtime ]; then grep -v '^$' "$here/packages-runtime.txt" | xargs apt-get install -y --no-install-recommends install_held + verify_ibus_runtime build_package droiddeck-runtime "$here/overlay-runtime" "$here/protected-runtime.txt" "DroidDeck's Ubuntu runtime" update-alternatives --install /usr/bin/sudo sudo /usr/local/bin/sudo 1000