diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-01-11 01:54:49 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-01-11 02:56:32 +0100 |
commit | dc754cbc9763b3ea6979ed55bd4e8030fe073078 (patch) | |
tree | a9ea62a8486450861883fa2d9e2362c594a3f1b4 /src/error.rs | |
parent | 02190c44f7072b4fdaca50836a583f955866f8de (diff) | |
download | dialog-rs-dc754cbc9763b3ea6979ed55bd4e8030fe073078.tar.gz dialog-rs-dc754cbc9763b3ea6979ed55bd4e8030fe073078.tar.bz2 |
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.
Diffstat (limited to 'src/error.rs')
0 files changed, 0 insertions, 0 deletions