aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools/Module
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ManaTools/Module')
-rw-r--r--lib/ManaTools/Module/Services.pm28
1 files changed, 11 insertions, 17 deletions
diff --git a/lib/ManaTools/Module/Services.pm b/lib/ManaTools/Module/Services.pm
index fc73587f..20864c67 100644
--- a/lib/ManaTools/Module/Services.pm
+++ b/lib/ManaTools/Module/Services.pm
@@ -78,6 +78,17 @@ has '+icon' => (
default => File::ShareDir::dist_file(ManaTools::Shared::distName(), 'images/manaservice.png'),
);
+has '+name' => (
+ lazy => 1,
+ builder => '_nameInitializer',
+);
+
+sub _nameInitializer {
+ my $self = shift;
+
+ return ($self->loc->N("Services and daemons"));
+};
+
has '_services' => (
traits => ['Array'],
is => 'rw',
@@ -181,10 +192,6 @@ our $VERSION = '1.0.0';
sub BUILD {
my $self = shift;
- if (! $self->name) {
- $self->name ($self->loc->N("adminService"));
- }
-
$self->loadServices();
}
@@ -208,14 +215,6 @@ sub BUILD {
sub start {
my $self = shift;
-# if ($EUID != 0) {
-# $self->sh_gui->warningMsgBox({
-# title => $self->name,
-# text => $self->loc->N("root privileges required"),
-# });
-# return;
-# }
-
$self->_servicePanel();
};
@@ -351,11 +350,6 @@ sub _servicePanel {
my $appTitle = yui::YUI::app()->applicationTitle();
- ## set new title to get it in dialog
- yui::YUI::app()->setApplicationTitle($self->name);
- ## set icon if not already set by external launcher
- yui::YUI::app()->setApplicationIcon($self->icon);
-
my $mageiaPlugin = "mga";
my $factory = yui::YUI::widgetFactory;
my $mgaFactory = yui::YExternalWidgets::externalWidgetFactory($mageiaPlugin);