From 77e45e4e2bad84b70c8333eef39a2f2a44e1abdf Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Thu, 8 Nov 2012 01:44:10 +0100 Subject: [PATCH] Support for Gnome 3 proxy configuration (currently dropped Gnome 2 support) --- src/mambatray | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mambatray b/src/mambatray index 22aae69..d9a478e 100755 --- a/src/mambatray +++ b/src/mambatray @@ -163,7 +163,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon): if (status == QtCore.QProcess.NormalExit): self.showMessage("Firewall", _("Firewall enabled in current session")) else: - self.showMessage("Firewall", _("Could not enable firewall")) + self.showMessage("Firewall", _("Could not enable firewall")) def networkFirewallConfigure(self): if desktop_session == 'kde': @@ -175,7 +175,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon): if desktop_session == 'kde': networkProxyProcess.execute("/opt/kde/bin/kcmshell4", QtCore.QStringList(list(set(['proxy'])))) elif desktop_session == 'gnome': - networkProxyProcess.execute("/usr/bin/gnome-network-properties") + networkProxyProcess.execute("/usr/bin/gnome-control-center", "network") def SRPMSCheckUpgradeList(self): checkSRPMSUpdatesTimer.stop() @@ -189,7 +189,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon): else: lista = [] NetsrpmsArg = '-c' - checkSRPMSUpdatesTimer.start((nOre * 60) * 60000) + checkSRPMSUpdatesTimer.start((nOre * 60) * 60000) #viene eseguita per ogni SRPM al termine del processo SRPMUpdateProcess def SRPMSCheckUpgrade(self, status):