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:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user