! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
After upgrade from 0.6.3 xdotool type --window "16777446" "ahoj" does not work
Status:
RESOLVED: MOVED
Product:
Xfce4-terminal
Component:
General

Comments

Description misarm 2016-10-26 14:44:33 CEST
Hi,
after update, xdotool partialy don't work with xfce4-terminal (upgraded 0.6.3-3 -> 0.8.0-2).
example Command:
xdotool type --window "16777446" "hello"
produces no error, but no output on desired window (with windowID 16777446).
I tried it with urxvt and xterm terminal window and it works.

command :
xdotool type "hello" 
works in actual active xfce4-terminal window (produces output).

commands:
xdotool windowactivate "16777446";xdotool type --window "16777446" "hello"
only activates desired window, but does not provide output

Xdotool didn't upgrade (version is 3.20160805.1)
Xdotool usage is for me very important.  
we discussed it also here: http://forum.xfce.org/viewtopic.php?pid=43470#p43470
ToZ thinks, that it can be vte3 issue...

possible workaround is 
xdotool windowactivate 69206019; xdotool type --window getactivewindow "hello"
but it slows down scripts and is not safe to use in parallel...

Sorry for my bad english.
Thanks
Martin
Comment 1 Igor editbugs 2016-10-26 15:03:43 CEST
Hi Martin,

Indeed, this looks like a vte3 issue - in addition to what ToZ has tested and found that it's impossible to type into gnome-terminal, I've also tested vte3 own terminal app ('vte-2.91' binary), and it's also not accepting the text.
However, the old vte ('vte' app) is taking the text sent by 'xdotool type'.

I'm afraid I cannot do much here, at least until vte3 developers look into this. One of them (Egmont) seems to inspect our bugzilla from time to time so he might comment here; or you may submit a bug against vte at bugzilla.gnome.org.
Comment 2 misarm 2016-10-26 15:30:27 CEST
Thank you very much Igor.
Martin
Comment 3 Igor editbugs 2016-10-26 15:35:17 CEST
Try to ping Egmont...
Comment 4 misarm 2016-10-26 15:44:18 CEST
I have submit bug against vte at bugzilla.gnome.org
https://bugzilla.gnome.org/show_bug.cgi?id=773538
Thank you.
Martin
Comment 5 Egmont Koblinger 2016-10-26 21:34:20 CEST
I'm not aware of any such change in vte, although I joined development later than the gtk2 -> gtk3 transition.

I cannot inject stuff to a gnome-terminal either this way (with explicit window id), but I cannot inject to gedit either.

So I suspect some generic change in gtk2 -> gtk3, rather than something in vte. (Or, another wild guess, maybe it has something to do with the x input method??)

Martin: What happens to you with other gtk3-based apps?

By the way, in xterm you can or can not inject keypresses based on its Allow SendEvents resource which can be toggled from cmdline, xresources, or the Ctrl + leftclick menu.
Comment 6 Egmont Koblinger 2016-10-26 21:38:54 CEST
See http://unix.stackexchange.com/questions/214909/xdotool-does-not-send-keys - does this help?
Comment 7 Egmont Koblinger 2016-10-26 21:48:14 CEST
Also note that _if_ there's a way to enable synthetic events, I believe it needs to be X-specific code (I don't think Gtk+ offers one for that), whereas Gtk+ and GNOME apps in general are moving away from exposing/having X-specific things so that they work equally well (or in an equally limited way) on X and Wayland (Mir too perhaps, I don't know). I have no clue whether the concept of synthetic events, or anything along the lines of xdotool exist on Wayland.
Comment 8 misarm 2016-10-31 07:19:16 CET
(In reply to Egmont Koblinger from comment #5)
> I'm not aware of any such change in vte, although I joined development later
> than the gtk2 -> gtk3 transition.
> 
> I cannot inject stuff to a gnome-terminal either this way (with explicit
> window id), but I cannot inject to gedit either.
> 
> So I suspect some generic change in gtk2 -> gtk3, rather than something in
> vte. (Or, another wild guess, maybe it has something to do with the x input
> method??)
> 
> Martin: What happens to you with other gtk3-based apps?
> 
> By the way, in xterm you can or can not inject keypresses based on its Allow
> SendEvents resource which can be toggled from cmdline, xresources, or the
> Ctrl + leftclick menu.

I am sorry for the late reply.
In xterm xdotool type --window "52428834" "ahoj" works also if AllowSendEvents is unchecked (default), but also if checked (using Ctrl + leftclick menu in xterm).
Using windowactivate workaround it works also in xfce4-terminal, but it slows down scripts and is not safe to use in parallel...
I have 4-8 telnet/ssh windows to which I need to send commands at the same time (ideally). 
Thanks.
Martin
Comment 9 Git Bot editbugs 2020-05-24 23:42:28 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/apps/xfce4-terminal/-/issues/17.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #12926

Reported by:
misarm
Reported on: 2016-10-26
Last modified on: 2020-05-24

People

CC List:
2 users

Version

Attachments

Additional information