Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unreliable Ctrl-Shift behavior since transition to xdotool; NoMachine remote desktop #43

Open
benzipperer opened this issue Aug 28, 2018 · 2 comments

Comments

@benzipperer
Copy link

benzipperer commented Aug 28, 2018

Thank you for the excellent package!

We've unfortunately had trouble since version 1.6 of stata-exec, after the migration away from autokey. On our Ubuntu 16.04 server this seems to stem from situation where clients remotely login and create an XFCE desktop via NoMachine. We don't have this problem using other remote desktop solutions like x2go.

Any chance you have tried using your software in a similar environment? If you haven't, it seems a bit unfair to ask you to look into it, but I thought I'd report this in case you had any ideas for what might be going wrong.

The problem is that after using Ctrl-Shift-c or Ctrl-Shift-d shortcuts, the shift and ctrl keys don't work reliably. screenkey confirms this. For example, after opening Stata and a do-file in Atom, I run the following commands in order:

(1) press LCtrl-LShift-c. The extension behaves as desired and screenkey displays "Ctrl-C Ctrl-v [enter]"
(2) press LCtrl-LShift-d. The extension does not work and simply a "d" is typed. screenkey confirms.
(3) press RCtrl-LShift-c. The extension does not work. screenkey confirms and displays "Ctrl-c."
(4) press RCtrl-RShift-c. The extension behaves as desired and screenkey displays "Ctrl-C Ctrl-v [enter]"
(5) press RCtrl-c. The extension should not run, but it does. screenkey displays "Ctrl-C Ctrl-v [enter]"
(6) press LCtrl-c. The extension should not run, but it does. screenkey displays "Ctrl-C Ctrl-v [enter]"
(6) press LCtrl-LShift-c. The extension runs and screenkey displays "Ctrl-C Ctrl-v [enter]"

At some point in the above sequence problems also show up with mouse input: on the XFCE desktop a left mouse click sometimes registers as a right mouse click.

Our machine is running Ubuntu 16.04. Clients login and create an XFCE Desktop via NoMachine. Using x2go we have no problems.

The tests above are from stata-exec version 1.8.5. We have no problems if we install stata-exec version 1.5.2 and set up the symlink to autokey.

Thanks again for your awesome package!

@benzipperer benzipperer changed the title unreliable Ctrl-Shift behavior since transition to xdotool unreliable Ctrl-Shift behavior since transition to xdotool; NoMachine remote desktop Aug 28, 2018
@kylebarron
Copy link
Owner

I'm on vacation this week, but yes I've noticed that issue as well since migrating to xdotool. For now just install the last version of the package that used autokey. I think this is like apm install stata_exec@1.5 or something like that

@benzipperer
Copy link
Author

Thanks for your response! Yes, version 1.5.2 works for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants