aboutsummaryrefslogtreecommitdiffstats
path: root/apanel.pl
diff options
context:
space:
mode:
authorAngelo Naselli <anaselli@linux.it>2014-01-06 19:59:29 +0100
committerAngelo Naselli <anaselli@linux.it>2014-01-06 19:59:29 +0100
commite4abf51415f1871a29f81b2c033fda0cb64a276a (patch)
treeddca8e169a4c2724bf4257c0955ec035bd35d479 /apanel.pl
parent00950d42d1eaed19349aecfbc3ff2fe34ee7c905 (diff)
downloadmanatools-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-xapanel.pl26
1 files changed, 14 insertions, 12 deletions
diff --git a/apanel.pl b/apanel.pl
index e2042dad..38755eba 100755
--- a/apanel.pl
+++ b/apanel.pl
@@ -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;