]> git.donarmstrong.com Git - deb_pkgs/autorandr.git/commitdiff
Direct --match-edid renaming of output messages to stderr
authorEpakai <joshua.honeycutt@gmail.com>
Fri, 9 Jun 2023 09:53:40 +0000 (04:53 -0500)
committerPhillip Berndt <phillip.berndt@googlemail.com>
Thu, 22 Jun 2023 14:29:45 +0000 (16:29 +0200)
This change helps scripts that consume autorandr output to only deal with profile names. My particular concern is with the output from 'autorandr --match-edid --detected'. With this change, only the detected profiles will go to another script. Command line users can still see the relevant messages if they have concerns about which port is in use.

autorandr.py

index 88dae0b90d31b4c24e86197ab2809b6aa7d2544a..9f8de14795bf6b5d824532d88ec42e4070a26895 100755 (executable)
@@ -735,7 +735,7 @@ def update_profiles_edid(profiles, config):
                 if profile_config[c].fingerprint != fingerprint or c == fp_map[fingerprint]:
                     continue
 
-                print("%s: renaming display %s to %s" % (p, c, fp_map[fingerprint]))
+                print("%s: renaming display %s to %s" % (p, c, fp_map[fingerprint]), file=sys.stderr)
 
                 tmp_disp = profile_config[c]