Bug 403301 - `xdotool type` doesn't work on Gnome/GTK apps in KDE Plasma
Summary: `xdotool type` doesn't work on Gnome/GTK apps in KDE Plasma
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: compatibility (other bugs)
Version First Reported In: 5.12.7
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-17 10:15 UTC by lopeonline
Modified: 2019-02-16 04:33 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description lopeonline 2019-01-17 10:15:42 UTC
SUMMARY
xdotool type is not able to enter text into a GTK/Gnome application running on KDE Plasma

STEPS TO REPRODUCE
1. Open Gedit
2. Run 3 commands in terminal
windowId=$(xdotool search --name 'Untitled');
echo "windowId is $windowId";
xdotool type --window "$windowId" --delay 100 foo

The above is a "foolproof" method, but I previously used a one-liner in Gnome:
xdotool search --name 'Untitled' windowfocus type --delay 50 foo

OBSERVED RESULT
Text cannot be entered into Gnome/GTK apps by xdotool type when running KDE Plasma

EXPECTED RESULT
xdotool type, types the text into the desired application as expected.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:
Ubuntu 18.04
Plasma: 5.12.7
KDE Framework: 5.44.0
Qt: 5.9.5
Kernel: 4.15.0-43-generic
OS: 64 bit

ADDITIONAL INFORMATION
xdotool version 3.20160805.1
libgtk-3-0:amd64       3.22.30-1ubuntu1
libgtk-3-bin           3.22.30-1ubuntu1
libgtk-3-common        3.22.30-1ubuntu1
libgtk-vnc-2.0-0:amd64 0.7.2-1
libgtk2.0-0:amd64      2.24.32-1ubuntu1
libgtk2.0-bin          2.24.32-1ubuntu1

Also not able to send text into Remmina, but GEdit is an easier test.
Comment 1 David Edmundson 2019-01-17 12:00:24 UTC
And does xdotool work in any other WM?
Comment 2 Bug Janitor Service 2019-02-01 04:33:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2019-02-16 04:33:09 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!