Support for Gnome 3 proxy configuration (currently dropped Gnome 2 support)
This commit is contained in:
parent
1e9eddbda6
commit
77e45e4e2b
@ -163,7 +163,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
|
|||||||
if (status == QtCore.QProcess.NormalExit):
|
if (status == QtCore.QProcess.NormalExit):
|
||||||
self.showMessage("Firewall", _("Firewall enabled in current session"))
|
self.showMessage("Firewall", _("Firewall enabled in current session"))
|
||||||
else:
|
else:
|
||||||
self.showMessage("Firewall", _("Could not enable firewall"))
|
self.showMessage("Firewall", _("Could not enable firewall"))
|
||||||
|
|
||||||
def networkFirewallConfigure(self):
|
def networkFirewallConfigure(self):
|
||||||
if desktop_session == 'kde':
|
if desktop_session == 'kde':
|
||||||
@ -175,7 +175,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
|
|||||||
if desktop_session == 'kde':
|
if desktop_session == 'kde':
|
||||||
networkProxyProcess.execute("/opt/kde/bin/kcmshell4", QtCore.QStringList(list(set(['proxy']))))
|
networkProxyProcess.execute("/opt/kde/bin/kcmshell4", QtCore.QStringList(list(set(['proxy']))))
|
||||||
elif desktop_session == 'gnome':
|
elif desktop_session == 'gnome':
|
||||||
networkProxyProcess.execute("/usr/bin/gnome-network-properties")
|
networkProxyProcess.execute("/usr/bin/gnome-control-center", "network")
|
||||||
|
|
||||||
def SRPMSCheckUpgradeList(self):
|
def SRPMSCheckUpgradeList(self):
|
||||||
checkSRPMSUpdatesTimer.stop()
|
checkSRPMSUpdatesTimer.stop()
|
||||||
@ -189,7 +189,7 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
|
|||||||
else:
|
else:
|
||||||
lista = []
|
lista = []
|
||||||
NetsrpmsArg = '-c'
|
NetsrpmsArg = '-c'
|
||||||
checkSRPMSUpdatesTimer.start((nOre * 60) * 60000)
|
checkSRPMSUpdatesTimer.start((nOre * 60) * 60000)
|
||||||
|
|
||||||
#viene eseguita per ogni SRPM al termine del processo SRPMUpdateProcess
|
#viene eseguita per ogni SRPM al termine del processo SRPMUpdateProcess
|
||||||
def SRPMSCheckUpgrade(self, status):
|
def SRPMSCheckUpgrade(self, status):
|
||||||
|
Loading…
Reference in New Issue
Block a user