summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@novell.com>2011-01-05 13:36:37 +0000
committerRobert Nagy <robert@openbsd.org>2011-01-05 15:20:48 +0100
commit7223f65beb36f1061e8bc12b418c7ecf9a9ed0e9 (patch)
treeb82bb306210b01d8b2fc7daaa515a03b2b26a32b
parenta1fc860c638a072924fd7733b4c09769acfa8ca3 (diff)
only enable zenity for local (unix socket) displays
-rwxr-xr-xsolenv/bin/build.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/solenv/bin/build.pl b/solenv/bin/build.pl
index 506c34578..e6a7d96e6 100755
--- a/solenv/bin/build.pl
+++ b/solenv/bin/build.pl
@@ -2152,9 +2152,10 @@ sub print_announce {
};
sub zenity_enabled {
- return 0 if (!defined $ENV{DISPLAY});
return 0 if ($ENV{ENABLE_ZENITY} ne "TRUE");
- return 1;
+ return 0 if (!defined $ENV{DISPLAY});
+ return 1 if ($ENV{DISPLAY} =~ m/^:/); # local displays only
+ return 0;
}
sub zenity_open {