Support for launching the new mambabase

This commit is contained in:
Silvan Calarco 2019-10-24 18:51:57 +02:00
parent 3978f8a721
commit 57c67d39c9

View File

@ -59,11 +59,10 @@ class SystemTrayIcon(QSystemTrayIcon):
# software menu
global softwareManagerProcess, softwareCheckUpgradesProcess,\
softwareBaseInstallsProcess, dcopServerProcess
softwareBaseInstallsProcess
softwareManagerProcess = QProcess(self)
softwareCheckUpgradesProcess = QProcess(self)
softwareBaseInstallsProcess = QProcess(self)
dcopServerProcess = QProcess(self)
softwareMenu = self.menu.addMenu(QIcon.fromTheme("applications-system"),_("Software"))
softwareManageAction = softwareMenu.addAction(QIcon.fromTheme("applications-other"),_("Add/Remove software packages..."))
@ -189,8 +188,7 @@ class SystemTrayIcon(QSystemTrayIcon):
refreshPackagesTimer.start( (4 * 60 + 31) * 60000)
def softwareBaseInstalls(self):
dcopServerProcess.startDetached("/opt/kde3/bin/dcopserver")
softwareBaseInstallsProcess.start("/opt/kde3/bin/kmdr-executor", ['/usr/share/openmamba/mambabase/mambabase.kmdr'])
softwareBaseInstallsProcess.start("/usr/bin/mambabase")
def networkFirewallDisable(self):
networkFirewallDisableProcess.start("sudo",['/usr/sbin/ufw','disable'])