Support for Gnome 3 proxy configuration (currently dropped Gnome 2 support)

This commit is contained in:
Silvan Calarco 2012-11-08 01:44:10 +01:00
parent 1e9eddbda6
commit 77e45e4e2b

View File

@ -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):