I've looked at this bug and I found a fix (I believe). I think the main
problem comes from the fact that "keytouchd" should be launched using
"keytouchd-launch" script.

keytouchd-launch script launches keytouchd and (should) kill it at the end of 
the session.
Currently, keytouchd-launch is launched from 
/etc/X11/Xsession.d/55keytouchd_launch (which is good!).
There's also /etc/X11/Xsession.d/92keytouchd_launch that tries to launch 
keytouchd directly.

/etc/X11/Xsession.d/92keytouchd_launch is responsible of the second
useless keytouchd process.

So here are the things that needs to be corrected:
-/etc/X11/Xsession.d/92keytouchd_launch: I don't know why this file exists as 
there's already /etc/X11/Xsession.d/55keytouchd_launch that launches 
keytouch-launch (which launches keytouchd and kill it when necessary). I think 
it is safe to delete /etc/X11/Xsession.d/92keytouchd_launch

-in /usr/bin/keytouchd-launch, there's a problem: it tries to kill
keytouchd at the end of the session. But it cannot as keytouchd is
launched by keytouchd-launch. That is why we get blocked at logout. So
we need to kill keytouchd-launch instead. A corrected version of
/usr/bin/keytouchd-launch is attached.

-in keytouch (the conf editor), when you apply the settings, it tries to
kill and relaunch keytouchd. That is why it adds new keytouchd processes
(previous process cannot be killed directly). We need to change the
sourcecode to use keytouchd-launch instead. In keytouch-
config/src/callbacks.c, replace every "keytouchd" by "keytouchd-launch".

I've tested it on my machine and everything work fine now.
Tell me if I'm wrong somewhere...
I don't know how to submit these sort of "patches". I hope it's going to be 
soon in the repos...
Thanks.

** Attachment added: "corrected version of /usr/bin/keytouchd-launch"
   http://launchpadlibrarian.net/14690735/keytouchd-launch_corrected

-- 
[hardy] keytouch blocks logout
https://bugs.launchpad.net/bugs/186713
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to