The officially official Devuan Forum!

You are not logged in.

#1 2019-09-29 01:10:39

GNUser
Member
Registered: 2017-03-16
Posts: 489  

'xinput test' produces no output when typing in xfwrite [SOLVED]

I created a little shell script that uses a crude keylogger (xinput test <keyboard_id>) and xdotool to replace certain character combinations when they are typed. The script is here but the particulars are not important.

The problem is that my script works well with all the GUI applications I've tested except for (ironically) my preferred text editor, xfwrite. It seems that xfwrite is somehow immune to the keylogger.

To reproduce the issue, open up a terminal emulator then:

$ sudo apt install xinput xfe
$ xinput test <your_keyboard_id> # mine is 9

Leave the terminal emulator open then launch a different application (e.g., web browser) and type something; you'll notice that xinput test detects your keystrokes. Now launch xfwrite and type something; you'll notice that xinput test does not seem to detect any keystrokes and produces no ouput.

I tried recompiling libfox and libfox-dev with the --with-xinput flag to configure then recompiling xfe, but it made no difference. UNIX wizards who frequent this forum: Any idea what needs to be done so that xinput test can detect keystrokes while typing in xfwrite?

Last edited by GNUser (2019-09-29 04:09:34)

Offline

#2 2019-09-29 04:08:28

GNUser
Member
Registered: 2017-03-16
Posts: 489  

Re: 'xinput test' produces no output when typing in xfwrite [SOLVED]

I found that xinput --test-xi2 --root and xinput --test-xi2 --root <keyboard_id> work.

Last edited by GNUser (2019-09-29 04:08:56)

Offline

Board footer