1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-24 15:12:31 +01:00

Actually tell the user that he may need to be in wpath.wicd_group if wicd-clientgets an access-denied error.

This commit is contained in:
Andrew Psaltis
2009-07-05 14:42:39 -04:00
parent fe18999be8
commit fef3063521

View File

@@ -88,7 +88,7 @@ def catchdbus(func):
return func(*args, **kwargs)
except DBusException, e:
if e.get_dbus_name() != None and "DBus.Error.AccessDenied" in e.get_dbus_name():
error(None, language['access_denied'])
error(None, language['access_denied'].replace("$A","<b>"+wpath.wicd_group+"</b>"))
#raise
raise DBusException(e)
else: