phillipberndt / autorandr

Auto-detect the connected display hardware and load the appropriate X11 setup using xrandr
2.51k stars 124 forks source link

Ignore processes with wrong XAUTHORITY file #391

Closed lisongmin closed 3 months ago

lisongmin commented 3 months ago

This commit adds a check to see if the XAUTHORITY file exists for a given display. If it doesn't, the process environment is added to the backup candidates and the loop continues. This is particularly useful for tmux processes when the user re-logs in, as the XAUTHORITY may not be updated.