summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYves Duret <yduret@mandriva.com>2001-06-21 11:18:03 +0000
committerYves Duret <yduret@mandriva.com>2001-06-21 11:18:03 +0000
commit96d2d518c22843d5b42a32f880d6a00352340696 (patch)
treed0e016126cc994f12a1363532ef3201063572e95
parent4fd8628576533d4549dfa15e31612c34673be1b2 (diff)
downloadcontrol-center-96d2d518c22843d5b42a32f880d6a00352340696.tar
control-center-96d2d518c22843d5b42a32f880d6a00352340696.tar.gz
control-center-96d2d518c22843d5b42a32f880d6a00352340696.tar.bz2
control-center-96d2d518c22843d5b42a32f880d6a00352340696.tar.xz
control-center-96d2d518c22843d5b42a32f880d6a00352340696.zip
reboot
-rwxr-xr-xcontrol-center9
1 files changed, 3 insertions, 6 deletions
diff --git a/control-center b/control-center
index cba2fd93..85326ab3 100755
--- a/control-center
+++ b/control-center
@@ -376,7 +376,6 @@ sub exec_treeitem {
}
if (!$tree_launched{$label}->[0]) {
-# if ($label eq _("Printer") && -e "/usr/bin/kups") {
if ($label eq _("Printer") && -e "/usr/bin/mozilla") {
my $socket = new Gtk::Socket;
$notebook_global->append_page($socket, new Gtk::Label(""));
@@ -384,8 +383,7 @@ sub exec_treeitem {
$tree_launched{$label}->[0]=$nb_pages;
$notebook_global->set_page($nb_pages);
$socket->realize;
-# $socket->steal(launch_wait("kups", "kups"));
- $socket->steal(launch_wait("xchat", "xchat"));
+ $socket->steal(launch_wait("kups", "kups"));
$notebook_global->show_all();
$notebook_global->set_page($nb_pages);
return;
@@ -458,10 +456,9 @@ sub exec_treeitem {
}
sub launch_wait {
- my $exec = $_[0];
- my $grep = $_[1];
+ my $exec, $grep = @_;
print "{{ $exec }}\n";
- my $b = "xwininfo -root -children -tree -int | grep '" . $grep . "'";
+ my $b = "xwininfo -root -tree -int | grep '" . $grep . "'";
my @before = split ('\n', `$b`);
unless ($pid = fork) {
die(_("cannot fork: $~")) unless defined $pid;