calibrate: do not override DISPLAY env var on xset
Sergey Alirzaev
PATCH 1/1 calibrate: do not override DISPLAY env var on xset
since X may live on another display, and the variable exists for this very case
--- src/calibrate/calibrate.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
src/calibrate/calibrate.cpp +4 -4
@@ -353,20 +353,20 @@ static void backlight_calibration(void) sleep(1); } printf(_("Calibrating idle\n")); - if(!system("DISPLAY=:0 /usr/bin/xset dpms force off")) + if(!system("/usr/bin/xset dpms force off")) printf("System is not available\n"); one_measurement(15, 15, NULL); - if(!system("DISPLAY=:0 /usr/bin/xset dpms force on")) + if(!system("/usr/bin/xset dpms force on")) printf("System is not available\n"); } static void idle_calibration(void) { printf(_("Calibrating idle\n")); - if(!system("DISPLAY=:0 /usr/bin/xset dpms force off")) + if(!system("/usr/bin/xset dpms force off")) printf("System is not available\n"); one_measurement(15, 15, NULL); - if(!system("DISPLAY=:0 /usr/bin/xset dpms force on")) + if(!system("/usr/bin/xset dpms force on")) printf("System is not available\n"); }
Signature · 1 line
2.18.0