summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2008-09-17 14:28:57 +0000
committerAntoine Ginies <aginies@mandriva.com>2008-09-17 14:28:57 +0000
commit4d3dbe44570955908500c95cb5820ae57655d2d9 (patch)
treec1401398ab31c32d02c13de878a26aee194847d2 /bin
parent953bd7714111f6e6ad099064cb67e5526a6f5465 (diff)
downloaddrakx-net-4d3dbe44570955908500c95cb5820ae57655d2d9.tar
drakx-net-4d3dbe44570955908500c95cb5820ae57655d2d9.tar.gz
drakx-net-4d3dbe44570955908500c95cb5820ae57655d2d9.tar.bz2
drakx-net-4d3dbe44570955908500c95cb5820ae57655d2d9.tar.xz
drakx-net-4d3dbe44570955908500c95cb5820ae57655d2d9.zip
standalone server by default, use new the draksambashare icon
Diffstat (limited to 'bin')
-rwxr-xr-xbin/draksambashare8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/draksambashare b/bin/draksambashare
index 10866d8..7c07b47 100755
--- a/bin/draksambashare
+++ b/bin/draksambashare
@@ -47,6 +47,7 @@ $in->do_pkgs->ensure_is_installed('samba-server', '/usr/sbin/smbd') or exit(1);
my $draksambashare = "/etc/sysconfig/draksambashare_first";
my $icon_path = "/usr/lib/libDrakX/icons";
+my $sambaicon = "/usr/share/mcc/themes/default/diskdrake_samba.png";
my $fileshare_icon = "$icon_path/IC-winacces2-16.png";
my $printershare_icon = "$icon_path/IC-sambaprt-16.png";
my $sambauser_icon = "$icon_path/ic82-users-16.png";
@@ -1057,7 +1058,7 @@ sub configure_samba {
name => N("Samba server configuration Wizard") . "\n\n" . N("Samba allows your server to behave as a file and print server for workstations running non-Linux systems."),
#no_back => 1,
pre => sub {
- $o->{var}{wiz_type} = "2";
+ $o->{var}{wiz_type} = "3";
},
post => sub {
if ($o->{var}{wiz_type} == 2) {
@@ -1191,7 +1192,7 @@ sub configure_samba {
name => N("Congratulations") . "\n\n" . N("The wizard successfully configured your Samba server."),
no_back => 1,
end => 1,
- next => 0
+ next => 0,
},
},
});
@@ -1447,6 +1448,7 @@ $nb->set_show_border(0);
sub check_first_launch() {
if (!-f $draksambashare) {
info_dialog(N("Please configure your Samba server"), N("It seems this is the first time you run this tool.\nA wizard will appear to configure a basic Samba server"));
+# local $::isEmbedded = 0;
launch_samba_wizard();
}
}
@@ -1454,7 +1456,7 @@ sub check_first_launch() {
# main interface
$W->add(gtkpack_(Gtk2::VBox->new(0,0),
0, $menu,
- 0, Gtk2::Banner->new('IC-winacces1-48', N("DrakSamba manage Samba shares")),
+ 0, Gtk2::Banner->new($sambaicon, N("DrakSamba manage Samba shares")),
#if_($::isEmbedded, 0, Gtk2::Label->new("Here you can add, remove and alter Samba shares.")),
1, $nb,
0, $okcancel,