2019-02-24, 15:20
Hi all,
I'm new to kodi and I'm writing a service add-on to track my user's login/logout behavior. After several days' struggle, all the other things are up and working. Except that I need to put a "Logout" button on the Home screen.
I've tried various things with no luck:
BTW, I also tried to employ shutdown / logout events without going to a custom event. Neither of them could fit my requirement.
Any helps are greatly appreciated.
I'm new to kodi and I'm writing a service add-on to track my user's login/logout behavior. After several days' struggle, all the other things are up and working. Except that I need to put a "Logout" button on the Home screen.
I've tried various things with no luck:
- The target of onClick event of a Button can only be one of the built-ins;
- e.g. I'm able to create an RPC server by service and use
RunScript(some_script)
to trigger it however this is too awkward;
- Or go to some built-in events (e.g. Screensaver), however this is also too awkward;
- I even tried to hook the onClick / onControl events of the
Window(10000)
, however the C++ exported class cannot be modified(i.e. hooked) as usual;
- etc.
BTW, I also tried to employ shutdown / logout events without going to a custom event. Neither of them could fit my requirement.
Any helps are greatly appreciated.