Fixed single-application instance issue

Not since I think Qt3 or Qt4 when they dropped QtSingleApplication, which had message passing. Qt also has a SharedMemory thing but I would really rather not touch that.