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