Package: debconf-kde-helper Version: 1.0.3-4 Severity: normal Dear Maintainer,
I noticed that the debconf's kde frontend fails to handle boolean inputs correctly. The GUI always sets the input to true/yes position even when the value is false/no. Thus, if the current value is false/no the GUI will always toggle it back on. I have attached a small shell script, which does demostrate the bug. -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 5.8.0-1-amd64 (SMP w/24 CPU threads) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en_GB Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages debconf-kde-helper depends on: ii libc6 2.31-3 ii libdebconf-kde1 1.0.3-4 ii libkf5coreaddons5 5.70.0-2 ii libkf5i18n5 5.70.0-1 ii libqt5core5a 5.14.2+dfsg-6 ii libqt5widgets5 5.14.2+dfsg-6 ii libstdc++6 10.2.0-9 debconf-kde-helper recommends no packages. debconf-kde-helper suggests no packages.
#!/bin/sh tmp=$(mktemp -d /tmp/debconf-kde-bug.XXXXX) cat > "$tmp/templates" <<EOF Template: bug-example/bool1 Type: boolean Default: true Description: First boolean, with default true Yep, this should be set to yes. Template: bug-example/bool2 Type: boolean Default: false Description: First boolean, with default false Yep, this should be set to no. EOF cat > "$tmp/script" <<EOF . /usr/share/debconf/confmodule db_x_loadtemplatefile $tmp/templates # with defaults db_input critical bug-example/bool1 || true db_input critical bug-example/bool2 || true db_go || true # again, with db_set db_set bug-example/bool1 true || true db_input critical bug-example/bool1 || true db_set bug-example/bool2 false || true db_input critical bug-example/bool2 || true db_go || true # again, with db_set after input db_input critical bug-example/bool1 || true db_set bug-example/bool1 true || true db_input critical bug-example/bool2 || true db_set bug-example/bool2 false || true db_go || true EOF export DEBIAN_PRIORITY=medium export DEBCONF_DEBUG=developer export DEBCONF_DB_REPLACE="File{$tmp/debconf.dat}" debconf --frontend=kde sh -x $tmp/script rm -r "$tmp" || true