summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2001-04-06 08:15:22 +0000
committerDaouda Lo <daouda@mandriva.com>2001-04-06 08:15:22 +0000
commitdc25d21e60db5a66c9b8d39da3a8f74847925cb3 (patch)
tree258ede8da7a4c76f58ec48eb1e1cebfdcc43e451
parente9f208ef93e5549ebba26213ab240a90a6ace851 (diff)
downloadcontrol-center-dc25d21e60db5a66c9b8d39da3a8f74847925cb3.tar
control-center-dc25d21e60db5a66c9b8d39da3a8f74847925cb3.tar.gz
control-center-dc25d21e60db5a66c9b8d39da3a8f74847925cb3.tar.bz2
control-center-dc25d21e60db5a66c9b8d39da3a8f74847925cb3.tar.xz
control-center-dc25d21e60db5a66c9b8d39da3a8f74847925cb3.zip
Mandrake (expert , campus) entries work well
-rwxr-xr-xcontrol-center7
1 files changed, 5 insertions, 2 deletions
diff --git a/control-center b/control-center
index a231f7ee..e9f2d998 100755
--- a/control-center
+++ b/control-center
@@ -160,6 +160,7 @@ my %tree_exec = (_("Boot Disk") => "$_xbindir/drakfloppy", _("Boot Config") => "
# _("Users Config") => "$_bindir/userdrake" ,
_("Connection") => "$_sbindir/draknet" ,
_("Connection Sharing") => "$_sbindir/drakgw" ,
+
_("Firewalling") => "$_sbindir/tinyfirewall" ,
_("Security Level") => "$_sbindir/draksec" ,
_("Date & Time") => "$_sbindir/clock.pm",
@@ -299,13 +300,15 @@ sub connect_to_site {
my $user_current=$ENV{'USER'};
if ($help)
{
- system("$browser -geometry 600x800+10+10 $link&");
+ print ("$browser");
+ system("$browser -geometry 600x800+10+10 $link&\"");
}
else
{
- if($initial_user ne "root")
+ if($initial_user ne "root" && $initial_user ne undef)
{
system("su -m -l $initial_user -c \"$browser $link&\"");
+
}
else {
splash_warning(_("Security Warning: I'm not allowed to connect to the internet as root user"));