From 449de0389af8d77de6c1e0ec9ba3722f48e5776c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 11 Dec 2011 12:35:59 +0100 Subject: [PATCH] Added support for Gnome proxy configuration using gnome-network-properties --- src/mambatray | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/mambatray b/src/mambatray index 11bdc4e..3dc9c10 100755 --- a/src/mambatray +++ b/src/mambatray @@ -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()