aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/manadm
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/manadm')
-rwxr-xr-xscripts/manadm19
1 files changed, 13 insertions, 6 deletions
diff --git a/scripts/manadm b/scripts/manadm
index e78915d1..2cd1997d 100755
--- a/scripts/manadm
+++ b/scripts/manadm
@@ -19,20 +19,27 @@
# along with ManaTools. If not, see <http://www.gnu.org/licenses/>.
use Modern::Perl '2011';
use autodie;
+
+use ManaTools::Shared;
+use ManaTools::Shared::Locales;
use ManaTools::Module::DisplayManager;
use yui;
-my $wm_icon = "/usr/share/mcc/themes/default/drakedm-mdk.png";
-my $wm_name = "Display Manager";
+my $locale_dir = ManaTools::Shared::custom_locale_dir();;
+my $loc = ManaTools::Shared::Locales->new(
+ domain_name => 'manatools',
+ dir_name => $locale_dir,
+);
+
+my $wm_name = $loc->N("Display Manager");
yui::YUI::app()->setApplicationTitle($wm_name);
-yui::YUI::app()->setApplicationIcon($wm_icon);
my $dmanager = ManaTools::Module::DisplayManager->new({
- icon => $wm_icon,
- name => $wm_name
- });
+ name => $wm_name,
+});
+
$dmanager->start();
1;