Don't allow launching gajim twice
Following our discussion on gajim chatroom, here is the bug report :
When we launch gajim twice, it keeps disconnecting and reconnecting.
The solution is, when we launch gajim :
- If gajim crashed (detected in gtkexcepthook): remove the pid file, and run normally
- else :
- if pid file exists : error message : "gajim is already running"; exit
- else : run normally
asterix: the pb is that I (and all other devs) always run several instances with different accounts
solution : an advanced option for developpers to allow running multiple instances
asterix: yes good idea