summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,