Skip to content
Snippets Groups Projects
Commit a346454c authored by nkour's avatar nkour
Browse files

make gajim bootable if not config available. this code is temp but seems to...

make gajim bootable if not config available. this code is temp but seems to fixes the pb. plz hack it so it meats your taste
parent f804c04d
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ class OptionsParser:
try:
fd = open(self.__filename)
except:
print "error: cannot open %s\n" % (self.__filename)
print "error: cannot open %s for reading\n" % (self.__filename)
return
for line in fd.readlines():
......@@ -68,7 +68,7 @@ class OptionsParser:
try:
fd = open(self.__filename, 'w')
except:
print "error: cannot open %s\n" % (self.__filename)
print "error: cannot open %s for writing\n" % (self.__filename)
return
gajim.config.foreach(self.write_line, fd)
fd.close()
......@@ -644,6 +644,9 @@ class Interface:
'statusmsgcolor': gajim.config.get('statusmsgcolor'),
}
parser.read()
#create the config
self.save_config()
for account in gajim.config.get_per('accounts'):
gajim.connections[account] = common.connection.Connection(account)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment