diff options
author | Angelo Naselli <anaselli@linux.it> | 2014-01-06 19:59:29 +0100 |
---|---|---|
committer | Angelo Naselli <anaselli@linux.it> | 2014-01-06 19:59:29 +0100 |
commit | e4abf51415f1871a29f81b2c033fda0cb64a276a (patch) | |
tree | ddca8e169a4c2724bf4257c0955ec035bd35d479 /apanel.pl | |
parent | 00950d42d1eaed19349aecfbc3ff2fe34ee7c905 (diff) | |
download | manatools-e4abf51415f1871a29f81b2c033fda0cb64a276a.tar manatools-e4abf51415f1871a29f81b2c033fda0cb64a276a.tar.gz manatools-e4abf51415f1871a29f81b2c033fda0cb64a276a.tar.bz2 manatools-e4abf51415f1871a29f81b2c033fda0cb64a276a.tar.xz manatools-e4abf51415f1871a29f81b2c033fda0cb64a276a.zip |
- Admin service is now splitted (gui and utility)
- Admin service extends Module
- fixed load modules from categories.conf.d
Diffstat (limited to 'apanel.pl')
-rwxr-xr-x | apanel.pl | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -36,21 +36,21 @@ my $settings = getSettings(); ask_for_authentication($settings->{priv_method}) if(require_root_capability()); -my $mainWin = new MainDisplay(); -my $launch = $mainWin->start(); +while (1) { + my $mainWin = new MainDisplay(); + my $launch = $mainWin->start(); -while ($launch) { - $mainWin->destroy(); - undef($mainWin); - - $launch->start(); - - $mainWin = new MainDisplay(); - $launch = $mainWin->start(); + if ($launch) { + $launch->start(); + undef($mainWin); + } + else { + $mainWin->destroy(); + undef($mainWin); + last; + } } -$mainWin->destroy(); -undef($mainWin); sub usage { print "\n"; @@ -90,3 +90,5 @@ sub getSettings { main launcher =cut + +1; |