From dc754cbc9763b3ea6979ed55bd4e8030fe073078 Mon Sep 17 00:00:00 2001 From: Robin Krahl Date: Fri, 11 Jan 2019 01:54:49 +0000 Subject: Check DISPLAY environment variable in default_backend This patch changes the default_backend to also check the DISPLAY environment variable. If it is set, there probably is a X server running, so we try to use the zenity backend. Otherwise, the dialog backend is used. --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 695a4ad..b11008c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Unreleased - Refactor `default_backend` to return a `Box`. -- Check the `DIALOG` environment variable in `default_backend`. +- Check the `DIALOG` and `DISPLAY` environment variables in `default_backend`. # v0.1.1 (2019-01-11) - Add the `Password` dialog box. -- cgit v1.2.1