again fix Gajim so it runs if NM is not there. Stefan please have a look from time to time in the timeline to see other ppl fixes [f.e. this was done by Yann b4]
This commit is contained in:
parent
4f85656bb0
commit
cf5666043c
2 changed files with 12 additions and 11 deletions
|
@ -32,6 +32,7 @@ from chat_control import ChatControlBase
|
||||||
|
|
||||||
from common import exceptions
|
from common import exceptions
|
||||||
from common.zeroconf import connection_zeroconf
|
from common.zeroconf import connection_zeroconf
|
||||||
|
from common import dbus_support
|
||||||
|
|
||||||
if os.name == 'posix': # dl module is Unix Only
|
if os.name == 'posix': # dl module is Unix Only
|
||||||
try: # rename the process name to gajim
|
try: # rename the process name to gajim
|
||||||
|
@ -1938,11 +1939,11 @@ class Interface:
|
||||||
else:
|
else:
|
||||||
self.remote_ctrl = None
|
self.remote_ctrl = None
|
||||||
|
|
||||||
if gajim.config.get('networkmanager_support'):
|
if gajim.config.get('networkmanager_support') and dbus_support.supported:
|
||||||
try:
|
try:
|
||||||
import network_manager_listener
|
import network_manager_listener
|
||||||
except ImportError:
|
except:
|
||||||
pass
|
print >> sys.stderr, _('Network Manager support not available')
|
||||||
|
|
||||||
self.show_vcard_when_connect = []
|
self.show_vcard_when_connect = []
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue