Direct --match-edid renaming of output messages to stderr

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.
This commit is contained in:
Epakai 2023-06-09 04:53:40 -05:00 committed by Phillip Berndt
parent 0ac2f9a0ed
commit 2452110831
1 changed files with 1 additions and 1 deletions

View File

@ -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]