So, I just noticed there already is the appindicator implementation (lines [137,154]) so it's really strange that it works if I add it at the beginning as I suggested in my previous comment.
I tried to debug the problem and I noticed that the indicator works if I start screenkey with the --no-detach option.
I then commented the call to self.drop_tty and it works even without the --no-detach option
I assume therefore the problem must be related to the fork call -- unfortunately i'm no expert in multithreading, I'll have to read a lot about it.
So, I just noticed there already is the appindicator implementation (lines [137,154]) so it's really strange that it works if I add it at the beginning as I suggested in my previous comment.
I tried to debug the problem and I noticed that the indicator works if I start screenkey with the --no-detach option.
I then commented the call to self.drop_tty and it works even without the --no-detach option
I assume therefore the problem must be related to the fork call -- unfortunately i'm no expert in multithreading, I'll have to read a lot about it.