From 0d421e9d20fbf0b48ab922b0472b8890d7b35d63 Mon Sep 17 00:00:00 2001 From: Angelo Naselli Date: Thu, 16 Oct 2014 13:53:01 +0200 Subject: addded mandm needed files --- MANIFEST | 3 ++ README.md | 3 +- extras/desktop/manadm.desktop | 9 ++++++ extras/polkit/org.mageia.manadm.policy | 51 +++++++++++++++++++++++++++++++++ scripts/mana | 17 ++++++++--- share/images/manadm.png | Bin 0 -> 3128 bytes 6 files changed, 78 insertions(+), 5 deletions(-) create mode 100644 extras/desktop/manadm.desktop create mode 100644 extras/polkit/org.mageia.manadm.policy create mode 100644 share/images/manadm.png diff --git a/MANIFEST b/MANIFEST index 3b63c71..0759328 100644 --- a/MANIFEST +++ b/MANIFEST @@ -5,6 +5,7 @@ extras/conf/categories.conf.d/manaservice.conf extras/conf/categories.conf.d/manauser.conf extras/conf/settings.conf extras/desktop/manaclock.desktop +extras/desktop/manadm.desktop extras/desktop/manahost.desktop extras/desktop/manalog.desktop extras/desktop/manaproxy.desktop @@ -13,6 +14,7 @@ extras/desktop/manauser.desktop extras/desktop/manauserlog.desktop extras/desktop/mpan.desktop extras/polkit/org.mageia.manaclock.policy +extras/polkit/org.mageia.manadm.policy extras/polkit/org.mageia.manahost.policy extras/polkit/org.mageia.manalog.policy extras/polkit/org.mageia.manaproxy.policy @@ -91,6 +93,7 @@ share/images/Down_32x32.png share/images/logo_mageia.png share/images/mageia.png share/images/manaclock.png +share/images/manadm.png share/images/manahost.png share/images/manalog.png share/images/manaproxy.png diff --git a/README.md b/README.md index acc6d18..27c85de 100644 --- a/README.md +++ b/README.md @@ -99,8 +99,9 @@ Creative Commons Attribution-No Derivative Works 3.0 Unported http://creativecommons.org/licenses/by-nd/3.0/ NOTE 1: -To avoid file name duplication we renamed icon from drakxtools, +To avoid file name duplication we renamed icons from drakxtools, rpmdrake and userdrake, to fit new naming convention: +drakedm-mdk -> manadm time-mdk -> manaclock drakhosts -> manahost logdrake-mdk -> manalog diff --git a/extras/desktop/manadm.desktop b/extras/desktop/manadm.desktop new file mode 100644 index 0000000..7e37fd0 --- /dev/null +++ b/extras/desktop/manadm.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=manadm +Comment=AdminPanel login manager configuration +Exec=mana dm +Icon=/usr/share/icons/manadm.png +Type=Application +StartupNotify=true +Categories=System;X-MandrivaLinux-CrossDesktop; + diff --git a/extras/polkit/org.mageia.manadm.policy b/extras/polkit/org.mageia.manadm.policy new file mode 100644 index 0000000..af2831d --- /dev/null +++ b/extras/polkit/org.mageia.manadm.policy @@ -0,0 +1,51 @@ + + + + + Mageia + http://www.mageia.org/ + + + Run Mageia Login Manager Configuration + Executa la configuració de gestió de l'inici de sessió + Εκτέλεση της Διαμόρφωσης του Διαχειριστή Σύνδεσης Mageia + Configurar al administrador de acceso + Mageia sisselogimishalduri seadistamise käivitamine + Configurer le gestionnaire de connexion Mageia + Jalankan Konfigurasi Pengelola Login Mageia + Start Mageia's Login-beheerderconfiguratie + Menadżer Logowania + Execultar Configuração do Gerenciador de Login Mageia + Lansează configurarea gestionarului de autentificare pentru Mageia + Запуск настройки управления входом + Zagon nastavitev upravitelja prijav Mageje + Mageia Giriş Yöneticisi Yapılandırma Çalıştır + Запуск засобу керування входом до Mageia + 執行 Mageia 登入管理員設定 + Authentication is required to run Mageia Login Manager Configuration + Απαιτείται πιστοποίηση για την εκτέλεση της Διαμόρφωσης του Διαχειριστή Σύνδεσης Mageia + Se requiere autenticación para configurar al administrador de acceso + Mageia sisselogimishalduri seadistamine nõuab autentimist + Une authentification est nécessaire pour configurer le gestionnaire de connexion Mageia + Otentikasi diperlukan untuk menjalankan Konfigurasi Pengelola Login Mageia + Authenticatie is nodig om Mageia's Login-beheerderconfiguratie te starten + Menadżer Logowania - wymagane uwierzytelnianie + A autenticação é necessária para executar a Configuração do Gerenciador de Login Mageia + Autentificare necesară pentru lansarea aplicației Mageia de configurat gestionarul de autentificare + Необходима аутентификация для запуска настройки управления входом + Za zagon nastavitev upravitelja prijav Mageje je potrebno overjanje + Mageia Giriş Yöneticisi Yapılandırması çalıştırmak için kimlik doğrulaması gerekli + Щоб запустити засіб керування входом до Mageia, слід пройти розпізнавання + 執行 Mageia 登入管理員設定需要認證 + drakconf + + no + no + auth_admin_keep + + /usr/bin/manadm + true + + diff --git a/scripts/mana b/scripts/mana index 2910025..265cab9 100755 --- a/scripts/mana +++ b/scripts/mana @@ -38,6 +38,10 @@ my %modules = ( exec => '/usr/bin/manaservice', descr => "manaservice: service manager", }, + dm => { + exec => '/usr/bin/manadm', + descr => "manadm: login manager configuration", + }, clock => { exec => '/usr/bin/manaclock', descr => "manaclock: date/time manager", @@ -68,10 +72,15 @@ die "Command ". $cmd . " not found!\n" if !defined($modules{$cmd}); my $mod = $modules{$cmd}->{exec}; shift(@ARGV); -if(is_root_capability_required()) { - system("/usr/bin/pkexec", $mod, @ARGV); -} else { - system($mod, @ARGV); +eval { + if(is_root_capability_required()) { + system("/usr/bin/pkexec", $mod, @ARGV); + } else { + system($mod, @ARGV); + } +}; +if ( $@ ) { + print "ERROR: " . $@ ."\n"; } #============================================================= diff --git a/share/images/manadm.png b/share/images/manadm.png new file mode 100644 index 0000000..d296dc4 Binary files /dev/null and b/share/images/manadm.png differ -- cgit v1.2.1