Switch VT using dbus to fix #72#75
Conversation
|
|
||
| def __enter__(self): | ||
| logger.info('running on tty: %s', self.tty_name) | ||
| # really useful ? Can block if permission is not set correctly on /dev/ttyx |
There was a problem hiding this comment.
As far as I recall, we need to enable graphics. It is not enabled by default.
| self.seat_methods.SwitchTo(self.tty_num) | ||
| except: | ||
| logger.exception('cannot switch to: %s', self.tty_name) | ||
| else: |
There was a problem hiding this comment.
nit: I'd probaby just print this in init() and remove the ekese part here.
|
Thanks for this. Is that dbus interface already available under jessie? I am still mostly using jessie due to lack of time testing stretch :/ |
I don't know, I juste have stretch now, you can check with qdbus for instance, but if the dbus interface isn't available, it won't hurt, , the exception will be catched, self.tty_name will be equal to self.previous_tty_num and it won't try to switch, as before |
Should fix #72