mirror of
https://github.com/vale981/rmview
synced 2025-03-05 09:11:39 -05:00
Make sure the pen tracking process is terminated on remarkable on exit
Could not figure out a better way, for some reason just closing the client does not make the `cat /dev/input/event0` process stop. Suggestions welcome.
This commit is contained in:
parent
d2e2921a78
commit
ab5c81129f
1 changed files with 3 additions and 1 deletions
|
@ -112,11 +112,13 @@ class PointerWorker(QRunnable):
|
|||
self.signals = PWSignals()
|
||||
|
||||
def stop(self):
|
||||
self._penkill.write('\n')
|
||||
self._stop = True
|
||||
|
||||
@pyqtSlot()
|
||||
def run(self):
|
||||
_, penstream, _ = self.ssh.exec_command('cat /dev/input/event0')
|
||||
penkill, penstream, _ = self.ssh.exec_command('cat /dev/input/event0 & { read ; kill %1; }')
|
||||
self._penkill = penkill
|
||||
new_x = new_y = False
|
||||
state = LIFTED
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue