Package: libnotify-bin
Version: 0.8.1-1
Severity: minor
Tags: patch

Hi,

(Note that it impacts unstable despite being reported against bookworm)

There is an error in the documentation of notify-send(1), i quote:

> -A, --action=[NAME=]Text...
>         Specifies the actions to display to the user. Implies --wait to wait
>         for user input. May be set multiple times. The NAME of the action is
>         output to stdout. If NAME is not specified, the numerical index of
>         the option is used (starting with 1).

It's not starting with 1, but 0. Run this in a terminal and click "See log":

notify-send -i /usr/share/icons/vendor/64x64/emblems/emblem-vendor.png \
            -A "See log" -t 2000 \
            "Unattended-upgrade" "Some upgrades were applied\!"

To check it out.

Cheers,

Frank.

-- System Information:
Debian Release: 12.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-18-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libnotify-bin depends on:
ii  libc6         2.36-9+deb12u4
ii  libglib2.0-0  2.74.6-2
ii  libnotify4    0.8.1-1

libnotify-bin recommends no packages.

libnotify-bin suggests no packages.

-- no debconf information
--- notify-send.1.orig	2024-04-06 13:26:21.536113318 +0200
+++ notify-send.1	2024-04-06 13:26:56.028113864 +0200
@@ -59,7 +59,7 @@ of the action is output to
 stdout\&. If
 \fINAME\fR
 is not specified, the numerical index of the option is used (starting with
-1)\&.
+0)\&.
 .RE
 .PP
 \fB\-u\fR, \fB\-\-urgency\fR=\fILEVEL\fR

Reply via email to