aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ManaTools
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2015-05-03 22:58:38 +0200
committerAngelo Naselli <anaselli@linux.it>2015-05-03 22:58:38 +0200
commit7ab83c3b5dedb9f992198f1cabbc4f9386387026 (patch)
tree6a82fee9b27e66dc67a05101025d24fb1e8a529e /lib/ManaTools
parent8e305b2790e2ddd37f3c9cdab22ee3f4333ca131 (diff)
downloadcolin-keep-7ab83c3b5dedb9f992198f1cabbc4f9386387026.tar
colin-keep-7ab83c3b5dedb9f992198f1cabbc4f9386387026.tar.gz
colin-keep-7ab83c3b5dedb9f992198f1cabbc4f9386387026.tar.bz2
colin-keep-7ab83c3b5dedb9f992198f1cabbc4f9386387026.tar.xz
colin-keep-7ab83c3b5dedb9f992198f1cabbc4f9386387026.zip
Missed title and icon settings
Added devel mode to test application layout in user space
Diffstat (limited to 'lib/ManaTools')
-rw-r--r--lib/ManaTools/Module/DisplayManager.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ManaTools/Module/DisplayManager.pm b/lib/ManaTools/Module/DisplayManager.pm
index 2290336..b3f4cd0 100644
--- a/lib/ManaTools/Module/DisplayManager.pm
+++ b/lib/ManaTools/Module/DisplayManager.pm
@@ -136,7 +136,7 @@ sub _SharedUGUIInitialize {
sub start {
my $self = shift;
- if ($EUID != 0) {
+ if (!ManaTools::Shared::devel_mode() && $EUID != 0) {
$self->sh_gui->warningMsgBox({
title => $self->name,
text => $self->loc->N("root privileges required"),
@@ -144,6 +144,11 @@ sub start {
return;
}
+ ## 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);
+
# initialize dm descriptions for i18n
$self->_build_desc_for_i18n();