1
0
mirror of https://github.com/gryf/wicd.git synced 2025-12-21 13:28:08 +01:00

Fix dbus permissions problem.

Fix missing dbus import.
This commit is contained in:
Dan O'Reilly
2008-12-11 18:42:11 -05:00
parent 2b47ff538e
commit 2e21e6abb0
2 changed files with 3 additions and 9 deletions

View File

@@ -25,13 +25,5 @@
</policy>
<policy context="default">
<deny own="org.wicd.daemon"/>
<deny send_destination="org.wicd.daemon"/>
<deny send_interface="org.wicd.daemon"/>
<deny send_destination="org.wicd.daemon.wireless"/>
<deny send_interface="org.wicd.daemon.wireless"/>
<deny send_destination="org.wicd.daemon.wired"/>
<deny send_interface="org.wicd.daemon.wired"/>
<deny send_destination="org.wicd.daemon.config"/>
<deny send_interface="org.wicd.daemon.config"/>
</policy>
</busconfig>

View File

@@ -27,6 +27,8 @@ when appropriate.
import gobject
import time
from dbus import DBusException
from wicd import wpath
from wicd import misc
from wicd import dbusmanager
@@ -167,7 +169,7 @@ class ConnectionStatus(object):
from_wireless = False
self.auto_reconnect(from_wireless)
self.update_state(state)
except dbus.exceptions.DBusException, e:
except DBusException, e:
print 'Ignoring DBus Error: ' + str(e)
return True