summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-11-14 11:35:26 +0000
committerOlivier Blin <oblin@mandriva.com>2008-11-14 11:35:26 +0000
commitbc19d8381ea0da57d7d0e9532ae08fdb1b24469b (patch)
tree1a0a2e017ad662b7915f3850a6ad29e23d496a5c /lib
parentf79e3b81467e1b10f2603f5bacbeac499a74b97d (diff)
downloaddrak3d-bc19d8381ea0da57d7d0e9532ae08fdb1b24469b.tar
drak3d-bc19d8381ea0da57d7d0e9532ae08fdb1b24469b.tar.gz
drak3d-bc19d8381ea0da57d7d0e9532ae08fdb1b24469b.tar.bz2
drak3d-bc19d8381ea0da57d7d0e9532ae08fdb1b24469b.tar.xz
drak3d-bc19d8381ea0da57d7d0e9532ae08fdb1b24469b.zip
allow to show only installed WMs in interactive mode (for finish-install)
Diffstat (limited to 'lib')
-rw-r--r--lib/Xconfig/glx.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Xconfig/glx.pm b/lib/Xconfig/glx.pm
index afad639..45bef17 100644
--- a/lib/Xconfig/glx.pm
+++ b/lib/Xconfig/glx.pm
@@ -215,9 +215,12 @@ sub detect_types {
}
sub choose_interactive {
- my ($in, $glx) = @_;
+ my ($in, $glx, $o_installed_only) = @_;
my ($available, $type) = detect_types($glx);
+ @$available = grep {
+ !$_->{wms} || -e '/usr/bin/' . first(@{$_->{wms}})
+ } @$available if $o_installed_only;
$in->ask_from_({ title => N("3D Desktop effects") }, [
{ label => N("3D Desktop effects"), title => 1 },