Package: xidle
Version: 20200802
Severity: normal

Hi,

in my user .tmux.conf, I have put following mechanism
```
new-session

split-window 'xidle -program /usr/local/bin/freeze -nw -delay 1 -timeout 120'
split-window -h 'xidle -program /usr/local/bin/unfreeze -ne -delay 1'
```

which autofreezes & minimizes browsers and messaging clients after two minutes
of absence or when I put my cursor in topper left corner.
After updating to new version, it stopped working; in a tmux pane, the process
would exit without notice.

Adding `set-option -w remain-on-exit on` and downgrading allowed me to
investigate this further..
When wrapping the call with sh as in

```
split-window 'sh -xc "xidle -program /usr/local/bin/freeze -nw -delay 1
-timeout 120"'
split-window -h 'sh -xc "xidle -program /usr/local/bin/unfreeze -ne -delay 1"'
```, it works again, but the output of my freeze script is hidden (also is not
in xsessions-errors or journal) ..

After comparing sources other than some restructuring and modernization, I
noticed the introduction of a setsid() call, which seem to be the source of the
issue... there is no note about change in behaviour in documentation which is
why I'm filing this issue ^^

.. also found patches in this thread
https://www.mail-archive.com/tech@openbsd.org/msg49105.html
to revert the behaviour change (e.g. by cloning stdout file descriptors); but
that has not gotten integrated "as of yet".

ok gotta run #best



-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (510, 'unstable'), (510, 'testing'), (509, 'experimental'), (500, 
'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.7.0-2-amd64 (SMP w/12 CPU cores)
Kernel taint flags: TAINT_CRAP, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), 
LANGUAGE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xidle depends on:
ii  libc6     2.30-4
ii  libx11-6  2:1.6.9-2+b1
ii  libxss1   1:1.2.3-1

xidle recommends no packages.

xidle suggests no packages.

-- debconf-show failed

Reply via email to