Added support for Gnome proxy configuration using gnome-network-properties

This commit is contained in:
Silvan Calarco 2011-12-11 12:35:59 +01:00
parent f901b3b3de
commit 449de0389a

View File

@ -172,8 +172,10 @@ class SystemTrayIcon(QtGui.QSystemTrayIcon):
networkFirewallConfigureProcess.execute("/usr/bin/gufw")
def networkProxy(self):
networkProxyProcess.execute("/opt/kde/bin/kcmshell4",
QtCore.QStringList(list(set(['proxy']))))
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")
def SRPMSCheckUpgradeList(self):
checkSRPMSUpdatesTimer.stop()