Package: xfce4-session
Version: 4.20.2-1
Severity: normal
X-Debbugs-Cc: mar...@meltin.net

Dear Maintainer,

When xflock4 is run it should activate locking in the screensaver.

However, the current result is:

$ xflock4
/usr/bin/xflock4: 52: arithmetic expression: expecting primary: "2**31
- 1"

This is because $((2**31 - 1)) is evaluated in an argument to attempt
to disable the dbus-send reply timeout.  However, /usr/bin/xflock4
uses #!/bin/sh, which is dash (not bash) on Debian.  dash is POSIX
compliant and does not support the "**" exponentiation operator.  This
is probably a bash-ism - indeed, if I modify the script to use
#!/bin/bash, the script works.

The script might as well pass the fixed value 2147483647 instead of
trying to be clever.

Thanks...

-martin

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.19-rt-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8),
LANGUAGE=en_AU:en Shell: /bin/sh linked to /usr/bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled

Versions of packages xfce4-session depends on:
ii  libatk1.0-0t64         2.56.0-3
ii  libc6                  2.41-6
ii  libcairo-gobject2      1.18.4-1+b1
ii  libcairo2              1.18.4-1+b1
ii  libgdk-pixbuf-2.0-0    2.42.12+dfsg-2
ii  libglib2.0-0t64        2.84.0-2
ii  libgtk-3-0t64          3.24.49-2
ii  libgtk-layer-shell0    0.9.0-2
ii  libice6                2:1.1.1-1
ii  libpango-1.0-0         1.56.3-1
ii  libpolkit-gobject-1-0  126-2
ii  libsm6                 2:1.2.4-1
ii  libx11-6               2:1.8.10-2
ii  libxfce4ui-2-0         4.20.1-1
ii  libxfce4util7          4.20.1-1
ii  libxfce4windowing-0-0  4.20.2-1
ii  libxfconf-0-3          4.20.0-1
ii  x11-xserver-utils      7.7+11
ii  xfce4-settings         4.20.1-1
ii  xfconf                 4.20.0-1

Versions of packages xfce4-session recommends:
ii  dbus-x11 [dbus-session-bus]  1.16.2-2
ii  libglib2.0-bin               2.84.0-2
ii  libpam-elogind [logind]      255.17-1debian1
ii  light-locker                 1.8.0-3+b1
pn  systemd-sysv                 <none>
ii  upower                       1.90.7-1
ii  xfdesktop4                   4.20.1-1
ii  xfwm4                        4.20.0-1
ii  xscreensaver                 6.09+dfsg1-1

Versions of packages xfce4-session suggests:
pn  fortune-mod  <none>
ii  sudo         1.9.16p2-1

-- no debconf information



peace & happiness,
martin

Reply via email to