-
Notifications
You must be signed in to change notification settings - Fork 323
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
Buggy behaviour for "xdotool search --pid <pid>" #14
Comments
I got exactly the same problem. Given the usefulness of this option, I would value this as a high-priority bug. |
A workaround seems to be to also provide the --name parameter for the given pid |
I'll see what I can do. |
Searching by pid works for me on master:
The only bug is that it warns you about consuming args. I'll fix that. |
in #14. Tests showing no more warning: # find all windows with pid 2593 % ./xdotool search --pid 2593 54525953 54527731 54525955 # find all windows with pid 2593 *and* name matches 'tmux' % ./xdotool search --all --name --pid 2593 tmux 54525955 # find all visible windows with pid 2593 % ./xdotool search --onlyvisible --pid 2593 54525955
Fixed the warning! :) |
Ubuntu Gnome 14.04 xdotool search --pid 7558
Can't consume 1 args; are only 0 available. This is a bug. Ugly workaround: xdotool search --any --pid 7558 --name "dummy_name_bug_workaround_1gqbvy4o5y8bw3ov5" |
This is a distribution-specific problem. The latest version on GitHub works. |
It seems to still happen to some degree in the latest version. Example:
|
Search by process ID does not work with the latest version:
|
does nothing, while
works as expected (and no output whatsoever and the window is activated).
|
anthony@bluegreen:~/Data/Code$ xdotool search --pid 15188 even if the _NET_WM_PID isn't set it would be nice if we didn't crash. |
@javierabreu, there is a simpler work around, redirecting standard error to /dev/null: |
By the way, there are other strange behaviours with options. This one works:
This one does not work, complaining “xdotool: Unknown command: --pid”:
|
Tried to One shouldn't need to call a nested |
input: xdotool search --pid <program_pid>
output Can't consume 1 args; are only 0 available. This is a bug.
version: xdotool version 2.20110530.1
system: Arch Linux (3.6.8-1-ARCH)
I wanted to use xdotool in a shell-script to wait for X applications to be visible. Therefore I issued a command like this:
xdotool search --onlyvisible --sync --pid 1234
The output was this: Can't consume 1 args; are only 0 available. This is a bug.
I narrowed down the issue to the --pid option, which causes the aforementioned error message.
The text was updated successfully, but these errors were encountered: