Bug#891054: Improper use of stderr for state output

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#891054: Improper use of stderr for state output

martin f krafft
Package: autorandr
Version: 1.4-1
Severity: minor

If I merely call 'autorandr', I get a list of configuration
environments, which is nice to query the state of autorandr.
However, this list is printed to stderr, whereas I'd like to argue
it belongs on stdout, as it's not an error message.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.14.0-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8), LANGUAGE=en_NZ:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages autorandr depends on:
ii  python             2.7.14-4
ii  x11-xserver-utils  7.7+7+b1

autorandr recommends no packages.

autorandr suggests no packages.

-- debconf-show failed


--
 .''`.   martin f. krafft <[hidden email]> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems

digital_signature_gpg.asc (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Bug#891054: Improper use of stderr for state output

Don Armstrong-2
On Thu, 22 Feb 2018, martin f krafft wrote:
> If I merely call 'autorandr', I get a list of configuration
> environments, which is nice to query the state of autorandr.
> However, this list is printed to stderr, whereas I'd like to argue
> it belongs on stdout, as it's not an error message.


On Thu, 22 Feb 2018, martin f krafft wrote:
> For use in scripts, it'd be nice if autorandr could be invoked such
> as
>
>   autorandr --print-current
>
> to which it'd respond with the currently identified and/or applied
> configuration.

Just a heads up that I've forwarded these upstream; since they involve
changing how autorandr works, I'm going to defer to upstream's decision.


--
Don Armstrong                      https://www.donarmstrong.com

I cannot find rest
Because I am powerless
To amend a broken world.
 -- Guy Gavriel Kay _Under Heaven_ p295